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:
parent
4bee6f66eb
commit
0785ab9427
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue