Fix linux warnings

This commit is contained in:
Filip Gawin committed 2020-05-12 23:18:54 +02:00
1 parent c40fcdf39a
commit c2ac6b3759
52 files changed
+165 -70

No files matched your search

+4
View File
@@ -90,7 +90,11 @@ CPools::MakeSureSlotInObjectPoolIsEmpty(int32 slot)
// relocate to another slot??
CObject *newObject = new CObject(object->GetModelIndex(), false);
CWorld::Remove(object);
#ifdef FIX_BUGS
*newObject = *object;
#else
memcpy(newObject, object, ms_pObjectPool->GetMaxEntrySize());
#endif
CWorld::Add(newObject);
object->m_rwObject = nil;
delete object;