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