diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-06-17 20:24:59 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-06-17 20:24:59 +0200 |
commit | e44704dc8290918a22e8126b44d3037a1e857d7e (patch) | |
tree | 909d9b5661ed6ac40ce5d05efbc68d13dfa56ef3 /src/vehicles/Automobile.cpp | |
parent | fix clipped subtitles (diff) | |
download | re3-e44704dc8290918a22e8126b44d3037a1e857d7e.tar re3-e44704dc8290918a22e8126b44d3037a1e857d7e.tar.gz re3-e44704dc8290918a22e8126b44d3037a1e857d7e.tar.bz2 re3-e44704dc8290918a22e8126b44d3037a1e857d7e.tar.lz re3-e44704dc8290918a22e8126b44d3037a1e857d7e.tar.xz re3-e44704dc8290918a22e8126b44d3037a1e857d7e.tar.zst re3-e44704dc8290918a22e8126b44d3037a1e857d7e.zip |
Diffstat (limited to '')
-rw-r--r-- | src/vehicles/Automobile.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vehicles/Automobile.cpp b/src/vehicles/Automobile.cpp index 97a6ce33..905a8338 100644 --- a/src/vehicles/Automobile.cpp +++ b/src/vehicles/Automobile.cpp @@ -5136,6 +5136,9 @@ CAutomobile::ProcessSwingingDoor(int32 component, eDoors door) if(Damage.GetDoorStatus(door) != DOOR_STATUS_SWINGING) return; + if (m_aCarNodes[component] == nil) + return; + CMatrix mat(RwFrameGetMatrix(m_aCarNodes[component])); CVector pos = mat.GetPosition(); float axes[3] = { 0.0f, 0.0f, 0.0f }; |