Changed: #985 Crash when opening a door

hg/feature/sound
kervala 15 years ago
parent a5d0faaec5
commit 51bd12ec4a

@ -489,9 +489,9 @@ void CDoorManager::getPACSTriggers()
} }
// Retrieve the door pointer // Retrieve the door pointer
SDoor *pDoor = (SDoor*)((nUserDataDoor >> 16)&0xffffffff); SDoor *pDoor = (SDoor*)((nUserDataDoor >> 16)&0xffffffffff);
// Retrieve the entity pointer // Retrieve the entity pointer
CEntityCL *pEntity = (CEntityCL*)((nUserDataEntity >> 16)&0xffffffff); CEntityCL *pEntity = (CEntityCL*)((nUserDataEntity >> 16)&0xffffffffff);
if (rTI.CollisionType == UTriggerInfo::Inside) if (rTI.CollisionType == UTriggerInfo::Inside)
pDoor->entityCollide(pEntity); pDoor->entityCollide(pEntity);

Loading…
Cancel
Save