mirror of
https://github.com/GTAmodding/re3.git
synced 2024-12-25 17:55:40 +00:00
Fix MakeSureSlotInObjectPoolIsEmpty
This commit is contained in:
parent
7d758f3a9f
commit
94acee8580
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue