diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2021-01-20 19:15:03 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2021-01-20 19:15:03 +0100 |
commit | a5be17d9415b0b1c265f7eadcc077f82d3ec8592 (patch) | |
tree | 39f96a60c1b024e9800a2031fd2635f2b428c0de /src/core | |
parent | sync (diff) | |
parent | some more script (diff) | |
download | re3-a5be17d9415b0b1c265f7eadcc077f82d3ec8592.tar re3-a5be17d9415b0b1c265f7eadcc077f82d3ec8592.tar.gz re3-a5be17d9415b0b1c265f7eadcc077f82d3ec8592.tar.bz2 re3-a5be17d9415b0b1c265f7eadcc077f82d3ec8592.tar.lz re3-a5be17d9415b0b1c265f7eadcc077f82d3ec8592.tar.xz re3-a5be17d9415b0b1c265f7eadcc077f82d3ec8592.tar.zst re3-a5be17d9415b0b1c265f7eadcc077f82d3ec8592.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/PlayerInfo.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/PlayerInfo.cpp b/src/core/PlayerInfo.cpp index f0f3e2c6..64f3b9d0 100644 --- a/src/core/PlayerInfo.cpp +++ b/src/core/PlayerInfo.cpp @@ -420,8 +420,10 @@ CPlayerInfo::Process(void) CTimer::Update(); } m_bInRemoteMode = false; - CWorld::Players[CWorld::PlayerInFocus].m_pRemoteVehicle->bRemoveFromWorld = true; - CWorld::Players[CWorld::PlayerInFocus].m_pRemoteVehicle = nil; + if (CWorld::Players[CWorld::PlayerInFocus].m_pRemoteVehicle) { + CWorld::Players[CWorld::PlayerInFocus].m_pRemoteVehicle->bRemoveFromWorld = true; + CWorld::Players[CWorld::PlayerInFocus].m_pRemoteVehicle = nil; + } if (FindPlayerVehicle()) { FindPlayerVehicle()->SetStatus(STATUS_PLAYER); } |