mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-28 18:51:16 +00:00
Use const_iterator
This commit is contained in:
parent
2e7451be2b
commit
b94cbc7bd8
@ -264,13 +264,13 @@ LegoBool LegoAnimPresenter::FUN_100698b0(const CompoundObject& p_und1, const Leg
|
||||
}
|
||||
|
||||
if (str != NULL && *str != '\0' && p_und1.size() > 0) {
|
||||
for (CompoundObject::iterator it = p_und1.begin(); it != p_und1.end(); it++) {
|
||||
for (CompoundObject::const_iterator it = p_und1.begin(); it != p_und1.end(); it++) {
|
||||
LegoROI* roi = (LegoROI*) *it;
|
||||
const char* name = roi->GetName();
|
||||
|
||||
if (name != NULL) {
|
||||
if (!strcmpi(name, str)) {
|
||||
m_unk0x70->Append(((LegoROI*) *it));
|
||||
m_unk0x70->Append(roi);
|
||||
result = TRUE;
|
||||
break;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user