1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-12-23 04:30:00 +00:00

script fix

This commit is contained in:
Nikolay Korolev 2020-05-23 00:50:15 +03:00 committed by GitHub
parent c993e99e00
commit e18eb0ce01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4333,7 +4333,7 @@ int8 CRunningScript::ProcessCommands400To499(int32 command)
} }
case COMMAND_SET_CAR_HEAVY: case COMMAND_SET_CAR_HEAVY:
{ {
CollectParameters(&m_nIp, 1); CollectParameters(&m_nIp, 2);
CVehicle* pVehicle = CPools::GetVehiclePool()->GetAt(ScriptParams[0]); CVehicle* pVehicle = CPools::GetVehiclePool()->GetAt(ScriptParams[0]);
assert(pVehicle); assert(pVehicle);
pVehicle->bIsHeavy = (ScriptParams[1] != 0); pVehicle->bIsHeavy = (ScriptParams[1] != 0);