fixed ANCHOR_BOAT

This commit is contained in:
Nikolay 2020-12-05 22:26:45 +03:00 committed by GitHub
parent 28a942735c
commit efb28b888d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,7 +89,7 @@ int8 CRunningScript::ProcessCommands800To899(int32 command)
CollectParameters(&m_nIp, 2); CollectParameters(&m_nIp, 2);
CBoat* pBoat = (CBoat*)CPools::GetVehiclePool()->GetAt(ScriptParams[0]); CBoat* pBoat = (CBoat*)CPools::GetVehiclePool()->GetAt(ScriptParams[0]);
script_assert(pBoat && pBoat->m_vehType == VEHICLE_TYPE_BOAT); script_assert(pBoat && pBoat->m_vehType == VEHICLE_TYPE_BOAT);
pBoat->m_bIsAnchored = (ScriptParams[1] == 0); pBoat->m_bIsAnchored = (ScriptParams[1] != 0);
return 0; return 0;
} }
case COMMAND_SET_ZONE_GROUP: case COMMAND_SET_ZONE_GROUP: