summaryrefslogtreecommitdiffstats
path: root/src/core/World.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-02-06 18:35:24 +0100
committerSergeanur <s.anureev@yandex.ua>2020-02-07 01:30:00 +0100
commita3e5ccde474297ab7c3fb509dcb08c4fc2f9c7be (patch)
tree99a4472def01f9b417cd4d31d76875dc32a80218 /src/core/World.cpp
parentCullZone fix (diff)
downloadre3-a3e5ccde474297ab7c3fb509dcb08c4fc2f9c7be.tar
re3-a3e5ccde474297ab7c3fb509dcb08c4fc2f9c7be.tar.gz
re3-a3e5ccde474297ab7c3fb509dcb08c4fc2f9c7be.tar.bz2
re3-a3e5ccde474297ab7c3fb509dcb08c4fc2f9c7be.tar.lz
re3-a3e5ccde474297ab7c3fb509dcb08c4fc2f9c7be.tar.xz
re3-a3e5ccde474297ab7c3fb509dcb08c4fc2f9c7be.tar.zst
re3-a3e5ccde474297ab7c3fb509dcb08c4fc2f9c7be.zip
Diffstat (limited to '')
-rw-r--r--src/core/World.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/World.cpp b/src/core/World.cpp
index 0b389e42..c914b647 100644
--- a/src/core/World.cpp
+++ b/src/core/World.cpp
@@ -864,10 +864,9 @@ CVehicle*
FindPlayerVehicle(void)
{
CPlayerPed *ped = FindPlayerPed();
- if(ped->InVehicle())
+ if(ped && ped->InVehicle())
return ped->m_pMyVehicle;
- else
- return nil;
+ return nil;
}
CVehicle*