Sanitizer fixes 2

This commit is contained in:
erorcun
2021-07-03 01:32:47 +03:00
parent 424a6d90bd
commit a8549e86a7
4 changed files with 27 additions and 14 deletions

View File

@ -2266,7 +2266,11 @@ CWeapon::HitsGround(CEntity *holder, CVector *fireSource, CEntity *aimingTo)
void
CWeapon::BlowUpExplosiveThings(CEntity *thing)
{
#ifdef FIX_BUGS
if ( thing && thing->IsObject() )
#else
if ( thing )
#endif
{
CObject *object = (CObject*)thing;
int32 mi = object->GetModelIndex();