diff options
author | withmorten <morten.with@gmail.com> | 2021-02-02 11:27:30 +0100 |
---|---|---|
committer | withmorten <morten.with@gmail.com> | 2021-02-02 11:27:30 +0100 |
commit | 4281730b16608714584c410a5e2111dae461b6bc (patch) | |
tree | 0e7abfd5423cc983fd65a4fa68b4ae3443915028 /src | |
parent | Merge pull request #1016 from erorcun/miami (diff) | |
download | re3-4281730b16608714584c410a5e2111dae461b6bc.tar re3-4281730b16608714584c410a5e2111dae461b6bc.tar.gz re3-4281730b16608714584c410a5e2111dae461b6bc.tar.bz2 re3-4281730b16608714584c410a5e2111dae461b6bc.tar.lz re3-4281730b16608714584c410a5e2111dae461b6bc.tar.xz re3-4281730b16608714584c410a5e2111dae461b6bc.tar.zst re3-4281730b16608714584c410a5e2111dae461b6bc.zip |
Diffstat (limited to '')
-rw-r--r-- | src/peds/PedAttractor.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/peds/PedAttractor.cpp b/src/peds/PedAttractor.cpp index de587270..11fb5b31 100644 --- a/src/peds/PedAttractor.cpp +++ b/src/peds/PedAttractor.cpp @@ -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) |