Decompile fn_19383 (CNaviData::Search)

Batch #17522 by eAthena: 0 byte-identical, 1 confirmed by peer review.

- fn_19383 CNaviData::Search: logic confirmed by peer review

Peer-reviewed-by: Yommy, cremane, bibinir
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-11-12 00:22:42 +00:00
commit 0785ab9427

View file

@ -1109,7 +1109,7 @@ __declspec(noinline) bool CNaviData::Search(std::string query, int type, std::ve
text.push_back(0);
std::vector<int> spaces;
spaces.push_back(-1);
for (unsigned int i = 0; i < text.size(); ++i) {
for (int i = 0; i < text.size(); ++i) {
if (text[i] == ' ') {
spaces.push_back(i);
}
@ -1128,7 +1128,7 @@ __declspec(noinline) bool CNaviData::Search(std::string query, int type, std::ve
} else {
int kind = this->ParseSearchKind(tokens);
out.clear();
for (CNaviInfo* info : this->destinations) {
for (auto& info : this->destinations) {
if (kind == 2) {
info->CollectTargets(type, out);
} else if (kind == 3) {