mirror of
https://github.com/GTAmodding/re3.git
synced 2024-12-24 18:15:41 +00:00
fixed vehicle enter crash
This commit is contained in:
parent
b83adc2cc9
commit
a19a6a7c0f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue