Fix MakeSureSlotInObjectPoolIsEmpty

This commit is contained in:
Sergeanur 2020-04-30 16:52:37 +03:00
parent 7d758f3a9f
commit 94acee8580

View File

@ -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);