mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-26 11:04:15 +01:00
Pickup fix
This commit is contained in:
parent
1e068aea73
commit
a96146c87b
@ -76,11 +76,11 @@ CPickup::GiveUsAPickUpObject(int32 handle)
|
|||||||
{
|
{
|
||||||
CObject *object;
|
CObject *object;
|
||||||
|
|
||||||
if (handle <= 0) object = new CObject(m_eModelIndex, false);
|
if (handle >= 0) {
|
||||||
else {
|
|
||||||
CPools::MakeSureSlotInObjectPoolIsEmpty(handle);
|
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;
|
if (object == nil) return nil;
|
||||||
object->ObjectCreatedBy = MISSION_OBJECT;
|
object->ObjectCreatedBy = MISSION_OBJECT;
|
||||||
|
Loading…
Reference in New Issue
Block a user