diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-02-06 18:35:24 +0100 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-02-07 01:30:00 +0100 |
commit | a3e5ccde474297ab7c3fb509dcb08c4fc2f9c7be (patch) | |
tree | 99a4472def01f9b417cd4d31d76875dc32a80218 /src/core/World.cpp | |
parent | CullZone fix (diff) | |
download | re3-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 'src/core/World.cpp')
-rw-r--r-- | src/core/World.cpp | 5 |
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* |