mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-27 03:24:15 +01:00
Fix MakeSureSlotInObjectPoolIsEmpty
This commit is contained in:
parent
7d758f3a9f
commit
94acee8580
@ -88,7 +88,7 @@ CPools::MakeSureSlotInObjectPoolIsEmpty(int32 slot)
|
|||||||
delete object;
|
delete object;
|
||||||
} else if (!CProjectileInfo::RemoveIfThisIsAProjectile(object)) {
|
} else if (!CProjectileInfo::RemoveIfThisIsAProjectile(object)) {
|
||||||
// relocate to another slot??
|
// relocate to another slot??
|
||||||
CObject *newObject = new CObject();
|
CObject *newObject = new CObject(object->GetModelIndex(), false);
|
||||||
CWorld::Remove(object);
|
CWorld::Remove(object);
|
||||||
memcpy(newObject, object, ms_pObjectPool->GetMaxEntrySize());
|
memcpy(newObject, object, ms_pObjectPool->GetMaxEntrySize());
|
||||||
CWorld::Add(newObject);
|
CWorld::Add(newObject);
|
||||||
|
Loading…
Reference in New Issue
Block a user