diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2021-08-08 14:34:02 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2021-08-08 14:34:02 +0200 |
commit | 88b4c7b50b032f06510fec278babe7502cd85d64 (patch) | |
tree | a3696b405ab314eb845766c57f4c3e941753c3d5 /src/weapons | |
parent | Merge pull request #1266 from Nick007J/miami (diff) | |
parent | CVehicle fixes and cleanup (diff) | |
download | re3-88b4c7b50b032f06510fec278babe7502cd85d64.tar re3-88b4c7b50b032f06510fec278babe7502cd85d64.tar.gz re3-88b4c7b50b032f06510fec278babe7502cd85d64.tar.bz2 re3-88b4c7b50b032f06510fec278babe7502cd85d64.tar.lz re3-88b4c7b50b032f06510fec278babe7502cd85d64.tar.xz re3-88b4c7b50b032f06510fec278babe7502cd85d64.tar.zst re3-88b4c7b50b032f06510fec278babe7502cd85d64.zip |
Diffstat (limited to 'src/weapons')
-rw-r--r-- | src/weapons/Weapon.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/weapons/Weapon.cpp b/src/weapons/Weapon.cpp index 8328067f..c0319a11 100644 --- a/src/weapons/Weapon.cpp +++ b/src/weapons/Weapon.cpp @@ -3163,7 +3163,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(); |