mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-23 03:50:01 +00: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);
|
||||
vVehicleToEffect.push_back(effect);
|
||||
POP_MEMID();
|
||||
#ifdef FIX_BUGS
|
||||
return vVehicleToEffect.back().ChooseEffect(pos);
|
||||
#else
|
||||
return effect.ChooseEffect(pos);
|
||||
#endif
|
||||
}
|
||||
|
||||
CVehicle* CPedAttractorManager::GetIceCreamVanForEffect(C2dEffect* pEffect)
|
||||
|
|
Loading…
Reference in a new issue