Sanitizer fixes 2

This commit is contained in:
erorcun committed 2021-07-03 01:42:24 +03:00
1 parent 424a6d90bd
commit a8549e86a7
4 files changed
+27 -14

No files matched your search

+4
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();