iterator object is used after the for loop

This commit is contained in:
Anonymous Maarten 2024-01-06 12:55:52 +01:00
parent 253b558a02
commit 284fca6883

View File

@ -25,8 +25,9 @@ MxDSAction* MxStreamListMxDSAction::Find(MxDSAction* p_action, MxBool p_delete)
// DECOMP ALPHA 0x1008b99d ?
MxDSAction* found = NULL;
iterator it;
for (iterator it = begin(); it != end(); it++) {
for (it = begin(); it != end(); it++) {
if (p_action->GetObjectId() == -1 || p_action->GetObjectId() == (*it)->GetObjectId()) {
if (p_action->GetUnknown24() == -2 || p_action->GetUnknown24() == -3 ||
p_action->GetUnknown24() == (*it)->GetUnknown24()) {