mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-31 12:11:15 +00:00
Match 100%
This commit is contained in:
parent
9ab3a0ace4
commit
c32e53c6c6
@ -220,6 +220,8 @@ void LegoWorld::Add(MxCore* p_object)
|
|||||||
void LegoWorld::Remove(MxCore* p_object)
|
void LegoWorld::Remove(MxCore* p_object)
|
||||||
{
|
{
|
||||||
if (p_object) {
|
if (p_object) {
|
||||||
|
MxCoreSet::iterator it;
|
||||||
|
|
||||||
if (p_object->IsA("MxControlPresenter")) {
|
if (p_object->IsA("MxControlPresenter")) {
|
||||||
MxPresenterListCursor cursor(&m_controlPresenters);
|
MxPresenterListCursor cursor(&m_controlPresenters);
|
||||||
|
|
||||||
@ -256,12 +258,12 @@ void LegoWorld::Remove(MxCore* p_object)
|
|||||||
cursor.Detach();
|
cursor.Detach();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
MxCoreSet::iterator it = m_set0xa8.find(p_object);
|
it = m_set0xa8.find(p_object);
|
||||||
if (it != m_set0xa8.end())
|
if (it != m_set0xa8.end())
|
||||||
m_set0xa8.erase(it);
|
m_set0xa8.erase(it);
|
||||||
}
|
}
|
||||||
|
|
||||||
MxCoreSet::iterator it = m_set0xd0.find(p_object);
|
it = m_set0xd0.find(p_object);
|
||||||
if (it != m_set0xd0.end())
|
if (it != m_set0xd0.end())
|
||||||
m_set0xd0.erase(it);
|
m_set0xd0.erase(it);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user