fix script crash

This commit is contained in:
Nikolay Korolev 2020-04-16 00:31:57 +03:00 committed by GitHub
parent 5cb7e2e42a
commit 3517f3f1a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10076,8 +10076,8 @@ void CRunningScript::LocatePlayerCarCommand(int32 command, uint32* pIp)
case COMMAND_LOCATE_PLAYER_ON_FOOT_CAR_3D: case COMMAND_LOCATE_PLAYER_ON_FOOT_CAR_3D:
result = !pPlayerInfo->m_pPed->bInVehicle; result = !pPlayerInfo->m_pPed->bInVehicle;
break; break;
case COMMAND_LOCATE_PLAYER_IN_CAR_CHAR_2D: case COMMAND_LOCATE_PLAYER_IN_CAR_CAR_2D:
case COMMAND_LOCATE_PLAYER_IN_CAR_CHAR_3D: case COMMAND_LOCATE_PLAYER_IN_CAR_CAR_3D:
result = pPlayerInfo->m_pPed->bInVehicle; result = pPlayerInfo->m_pPed->bInVehicle;
break; break;
default: default: