Fixed failed assertion when damaging LRV or Scribbler, closes #665

dev-time-step
krzys-h 2015-12-19 22:19:13 +01:00
parent 2e17712b5d
commit 52a18de5c0
1 changed files with 1 additions and 3 deletions

View File

@ -2750,9 +2750,7 @@ bool CPhysics::ExploOther(ObjectType iType,
oType == OBJECT_MOBILEwt ||
oType == OBJECT_MOBILEtt ||
oType == OBJECT_MOBILEft ||
oType == OBJECT_MOBILEit ||
oType == OBJECT_MOBILEdr ||
oType == OBJECT_APOLLO2 ) // vehicle?
oType == OBJECT_MOBILEit ) // vehicle?
{
assert(pObj->Implements(ObjectInterfaceType::Damageable));
dynamic_cast<CDamageableObject*>(pObj)->DamageObject(DamageType::Collision, force/200.0f);