summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-01-01 14:00:17 +0100
committerGitHub <noreply@github.com>2020-01-01 14:00:17 +0100
commit84fcda618dde0803ea0071336b7de3eaa389e37a (patch)
tree1d6e4b0e930748f6364c680b5b7b094e2886e979
parentmaking particleobject compile on vs2015 (diff)
parentfixed vehicle enter crash (diff)
downloadre3-84fcda618dde0803ea0071336b7de3eaa389e37a.tar
re3-84fcda618dde0803ea0071336b7de3eaa389e37a.tar.gz
re3-84fcda618dde0803ea0071336b7de3eaa389e37a.tar.bz2
re3-84fcda618dde0803ea0071336b7de3eaa389e37a.tar.lz
re3-84fcda618dde0803ea0071336b7de3eaa389e37a.tar.xz
re3-84fcda618dde0803ea0071336b7de3eaa389e37a.tar.zst
re3-84fcda618dde0803ea0071336b7de3eaa389e37a.zip
Diffstat (limited to '')
-rw-r--r--src/core/PlayerInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/PlayerInfo.cpp b/src/core/PlayerInfo.cpp
index fcdd60da..d9030250 100644
--- a/src/core/PlayerInfo.cpp
+++ b/src/core/PlayerInfo.cpp
@@ -435,7 +435,7 @@ CPlayerInfo::Process(void)
if (CPad::GetPad(0)->ExitVehicleJustDown()) {
bool weAreOnBoat = false;
float lastClosestness = 0.0f;
- CVehicle *carBelow;
+ CVehicle *carBelow = nil;
CEntity *surfaceBelow = m_pPed->m_pCurrentPhysSurface;
if (surfaceBelow && surfaceBelow->IsVehicle()) {
carBelow = (CVehicle*)surfaceBelow;