diff options
author | aap <aap@papnet.eu> | 2021-01-25 10:43:12 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2021-01-25 10:43:12 +0100 |
commit | fef87b9219af21a1b2491c1aa7a8d2e9a2353b94 (patch) | |
tree | 3ee81502698936036f4e86828f9ab003927c1b43 /src/modelinfo | |
parent | ini fixes (diff) | |
download | re3-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.cpp | 4 |
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; |