Changed: #985 Crash when opening a door

This commit is contained in:
kervala 2010-06-16 12:30:14 +02:00
parent a75ad193ef
commit a6bb1d8ac5

View file

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