mirror of
https://github.com/halpz/re3.git
synced 2024-12-24 17:55:29 +00:00
fixes
This commit is contained in:
parent
0ccc70c843
commit
e473123a6a
|
@ -12280,7 +12280,7 @@ int8 CRunningScript::ProcessCommands1200To1299(int32 command)
|
|||
case COMMAND_IS_CONSTANT_GREATER_OR_EQUAL_TO_INT_VAR:
|
||||
{
|
||||
CollectParameters(&m_nIp, 1);
|
||||
int32* ptr = GetPointerToScriptVariable(&m_nIp, VAR_LOCAL);
|
||||
int32* ptr = GetPointerToScriptVariable(&m_nIp, VAR_GLOBAL);
|
||||
UpdateCompareFlag(ScriptParams[0] >= *ptr);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -136,7 +136,7 @@ void CPedAttractorManager::RemoveIceCreamVanEffects(C2dEffect* pEffect)
|
|||
return;
|
||||
for (std::vector<CVehicleToEffect>::const_iterator assoc = vVehicleToEffect.cbegin(); assoc != vVehicleToEffect.cend();) {
|
||||
if (assoc->GetVehicle() != pVehicle) {
|
||||
assoc++;
|
||||
++assoc;
|
||||
continue;
|
||||
}
|
||||
uint32 total = 0;
|
||||
|
@ -145,7 +145,7 @@ void CPedAttractorManager::RemoveIceCreamVanEffects(C2dEffect* pEffect)
|
|||
total++;
|
||||
}
|
||||
if (total > 0)
|
||||
assoc++;
|
||||
++assoc;
|
||||
else
|
||||
assoc = vVehicleToEffect.erase(assoc);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue