summaryrefslogtreecommitdiffstats
path: root/src/modelinfo
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-01-25 10:43:12 +0100
committeraap <aap@papnet.eu>2021-01-25 10:43:12 +0100
commitfef87b9219af21a1b2491c1aa7a8d2e9a2353b94 (patch)
tree3ee81502698936036f4e86828f9ab003927c1b43 /src/modelinfo
parentini fixes (diff)
downloadre3-fef87b9219af21a1b2491c1aa7a8d2e9a2353b94.tar
re3-fef87b9219af21a1b2491c1aa7a8d2e9a2353b94.tar.gz
re3-fef87b9219af21a1b2491c1aa7a8d2e9a2353b94.tar.bz2
re3-fef87b9219af21a1b2491c1aa7a8d2e9a2353b94.tar.lz
re3-fef87b9219af21a1b2491c1aa7a8d2e9a2353b94.tar.xz
re3-fef87b9219af21a1b2491c1aa7a8d2e9a2353b94.tar.zst
re3-fef87b9219af21a1b2491c1aa7a8d2e9a2353b94.zip
Diffstat (limited to 'src/modelinfo')
-rw-r--r--src/modelinfo/VehicleModelInfo.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modelinfo/VehicleModelInfo.cpp b/src/modelinfo/VehicleModelInfo.cpp
index bc29d649..bd3a2154 100644
--- a/src/modelinfo/VehicleModelInfo.cpp
+++ b/src/modelinfo/VehicleModelInfo.cpp
@@ -275,6 +275,10 @@ RemoveWheelCB(RwObject *object, void *arg)
void
CVehicleModelInfo::RemoveWheels(void)
{
+#ifdef FIX_BUGS
+ if(m_clump == nil)
+ return;
+#endif
RwObjectNameIdAssocation *desc = ms_vehicleDescs[m_vehicleType];
for(int i = 0; desc[i].name; i++){
RwObjectIdAssociation assoc;