mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-28 02:31:15 +00:00
iterator object is used after the for loop
This commit is contained in:
parent
253b558a02
commit
284fca6883
@ -25,8 +25,9 @@ MxDSAction* MxStreamListMxDSAction::Find(MxDSAction* p_action, MxBool p_delete)
|
|||||||
// DECOMP ALPHA 0x1008b99d ?
|
// DECOMP ALPHA 0x1008b99d ?
|
||||||
|
|
||||||
MxDSAction* found = NULL;
|
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->GetObjectId() == -1 || p_action->GetObjectId() == (*it)->GetObjectId()) {
|
||||||
if (p_action->GetUnknown24() == -2 || p_action->GetUnknown24() == -3 ||
|
if (p_action->GetUnknown24() == -2 || p_action->GetUnknown24() == -3 ||
|
||||||
p_action->GetUnknown24() == (*it)->GetUnknown24()) {
|
p_action->GetUnknown24() == (*it)->GetUnknown24()) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user