From 06ba7ef4685666f3ba735f3ce3ba1082a346cfc9 Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Wed, 17 Jul 2019 16:18:33 +0300 Subject: dodo crash fix --- src/vehicles/Automobile.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/vehicles') diff --git a/src/vehicles/Automobile.cpp b/src/vehicles/Automobile.cpp index 6e31414f..0cfe31cc 100644 --- a/src/vehicles/Automobile.cpp +++ b/src/vehicles/Automobile.cpp @@ -900,6 +900,7 @@ CAutomobile::BlowUpCar(CEntity *culprit) SetDoorDamage(CAR_DOOR_LR, DOOR_REAR_LEFT); SetDoorDamage(CAR_DOOR_RR, DOOR_REAR_RIGHT); SpawnFlyingComponent(CAR_WHEEL_LF, COMPGROUP_WHEEL); + atomic = nil; RwFrameForAllObjects(m_aCarNodes[CAR_WHEEL_LF], GetCurrentAtomicObjectCB, &atomic); if(atomic) RpAtomicSetFlags(atomic, 0); -- cgit v1.2.3