summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-04-30 15:52:37 +0200
committerSergeanur <s.anureev@yandex.ua>2020-04-30 15:52:37 +0200
commit94acee858012789ce2685ef71c71810fd69b0e76 (patch)
treef3c7c0698525b9846e421670bc985c664f783248
parentAdding getters and setters for type and status (diff)
downloadre3-94acee858012789ce2685ef71c71810fd69b0e76.tar
re3-94acee858012789ce2685ef71c71810fd69b0e76.tar.gz
re3-94acee858012789ce2685ef71c71810fd69b0e76.tar.bz2
re3-94acee858012789ce2685ef71c71810fd69b0e76.tar.lz
re3-94acee858012789ce2685ef71c71810fd69b0e76.tar.xz
re3-94acee858012789ce2685ef71c71810fd69b0e76.tar.zst
re3-94acee858012789ce2685ef71c71810fd69b0e76.zip
-rw-r--r--src/core/Pools.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/Pools.cpp b/src/core/Pools.cpp
index b9a78b0b..e82fa6e2 100644
--- a/src/core/Pools.cpp
+++ b/src/core/Pools.cpp
@@ -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);