script revision
This commit is contained in:
@@ -50,3 +50,18 @@ CDummy::Remove(void)
|
||||
m_entryInfoList.DeleteNode(node);
|
||||
}
|
||||
}
|
||||
|
||||
bool
|
||||
IsDummyPointerValid(CDummy* pDummy)
|
||||
{
|
||||
if (!pDummy)
|
||||
return false;
|
||||
int index = CPools::GetDummyPool()->GetJustIndex(pDummy);
|
||||
#ifdef FIX_BUGS
|
||||
if (index < 0 || index >= CPools::GetDummyPool()->GetSize())
|
||||
#else
|
||||
if (index < 0 || index > CPools::GetDummyPool()->GetSize())
|
||||
#endif
|
||||
return false;
|
||||
return pDummy->m_entryInfoList.first;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user