mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-28 18:51:16 +00:00
Compat mode for iterator
This commit is contained in:
parent
ad1ac46433
commit
d81250c56b
@ -460,7 +460,11 @@ LegoROI* LegoCharacterManager::FUN_10084cf0(LegoROI* p_roi, const char* p_name)
|
|||||||
{
|
{
|
||||||
const CompoundObject* comp = p_roi->GetComp();
|
const CompoundObject* comp = p_roi->GetComp();
|
||||||
|
|
||||||
|
#ifdef COMPAT_MODE
|
||||||
|
for (CompoundObject::const_iterator it = comp->begin(); !(it == comp->end()); it++) {
|
||||||
|
#else
|
||||||
for (CompoundObject::iterator it = comp->begin(); !(it == comp->end()); it++) {
|
for (CompoundObject::iterator it = comp->begin(); !(it == comp->end()); it++) {
|
||||||
|
#endif
|
||||||
LegoROI* roi = (LegoROI*) *it;
|
LegoROI* roi = (LegoROI*) *it;
|
||||||
|
|
||||||
if (!strcmpi(p_name, roi->GetName())) {
|
if (!strcmpi(p_name, roi->GetName())) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user