mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-12-25 01:01:49 +01:00
fix UB and potential crashes when doing ice cream
This commit is contained in:
parent
1eb77c4d6d
commit
4281730b16
@ -113,7 +113,11 @@ const C2dEffect* CPedAttractorManager::GetEffectForIceCreamVan(CVehicle* pVehicl
|
|||||||
CVehicleToEffect effect(pVehicle);
|
CVehicleToEffect effect(pVehicle);
|
||||||
vVehicleToEffect.push_back(effect);
|
vVehicleToEffect.push_back(effect);
|
||||||
POP_MEMID();
|
POP_MEMID();
|
||||||
|
#ifdef FIX_BUGS
|
||||||
|
return vVehicleToEffect.back().ChooseEffect(pos);
|
||||||
|
#else
|
||||||
return effect.ChooseEffect(pos);
|
return effect.ChooseEffect(pos);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
CVehicle* CPedAttractorManager::GetIceCreamVanForEffect(C2dEffect* pEffect)
|
CVehicle* CPedAttractorManager::GetIceCreamVanForEffect(C2dEffect* pEffect)
|
||||||
|
Loading…
Reference in New Issue
Block a user