Decompile fn_19472 (CNaviInfo::FindMobByIndex)
Batch #11952 by Yommy: 1 byte-identical, 0 confirmed by peer review. - fn_19472 CNaviInfo::FindMobByIndex: byte-identical Merged automatically: every function is byte-identical to the original.
This commit is contained in:
parent
804b9a3760
commit
10b0641ec7
1 changed files with 3 additions and 3 deletions
|
|
@ -369,9 +369,9 @@ std::vector<CNavi_Object*>* CNaviInfo::Mobs() {
|
|||
// OFFSET: 0x00B8E460
|
||||
// FUNCTION: fn_19472
|
||||
CNavi_Object* CNaviInfo::FindMobByIndex(int index) {
|
||||
for (CNavi_Object* mob : this->mobs) {
|
||||
if (index == mob->GetIndex()) {
|
||||
return mob;
|
||||
for (std::vector<CNavi_Object*>::iterator it = this->mobs.begin(); it != this->mobs.end(); ++it) {
|
||||
if (index == (*it)->GetIndex()) {
|
||||
return *it;
|
||||
}
|
||||
}
|
||||
return nullptr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue