1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-12-22 23:10:00 +00:00

Pickup fix

This commit is contained in:
Sergeanur 2020-10-14 03:29:25 +03:00
parent 1e068aea73
commit a96146c87b

View file

@ -76,11 +76,11 @@ CPickup::GiveUsAPickUpObject(int32 handle)
{
CObject *object;
if (handle <= 0) object = new CObject(m_eModelIndex, false);
else {
if (handle >= 0) {
CPools::MakeSureSlotInObjectPoolIsEmpty(handle);
object = new(handle) CObject(m_eModelIndex, false);
}
object = new (handle) CObject(m_eModelIndex, false);
} else
object = new CObject(m_eModelIndex, false);
if (object == nil) return nil;
object->ObjectCreatedBy = MISSION_OBJECT;