diff options
author | Filip Gawin <filip.gawin@zoho.com> | 2021-01-31 20:44:39 +0100 |
---|---|---|
committer | Filip Gawin <filip.gawin@zoho.com> | 2021-01-31 20:44:39 +0100 |
commit | 7a3b80a9b7f414967fe59f89ab0fe5416735babe (patch) | |
tree | a84fb5e1dbdb00959d6916594d43b9c82c9bef23 /src/peds/Ped.cpp | |
parent | fix realloc (diff) | |
download | re3-7a3b80a9b7f414967fe59f89ab0fe5416735babe.tar re3-7a3b80a9b7f414967fe59f89ab0fe5416735babe.tar.gz re3-7a3b80a9b7f414967fe59f89ab0fe5416735babe.tar.bz2 re3-7a3b80a9b7f414967fe59f89ab0fe5416735babe.tar.lz re3-7a3b80a9b7f414967fe59f89ab0fe5416735babe.tar.xz re3-7a3b80a9b7f414967fe59f89ab0fe5416735babe.tar.zst re3-7a3b80a9b7f414967fe59f89ab0fe5416735babe.zip |
Diffstat (limited to '')
-rw-r--r-- | src/peds/Ped.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp index 87e77ef3..a498e251 100644 --- a/src/peds/Ped.cpp +++ b/src/peds/Ped.cpp @@ -4348,13 +4348,15 @@ CPed::PedSetDraggedOutCarCB(CAnimBlendAssociation *dragAssoc, void *arg) } #endif - if (quickJackedAssoc) { - dragAssoc->SetDeleteCallback(PedSetQuickDraggedOutCarPositionCB, ped); - } else { - dragAssoc->SetDeleteCallback(PedSetDraggedOutCarPositionCB, ped); - if (ped->CanSetPedState()) - CAnimManager::BlendAnimation(ped->GetClump(), ASSOCGRP_STD, ANIM_GETUP1, 1000.0f); - } +#ifdef FIX_BUGS + if(dragAssoc) +#endif + if(quickJackedAssoc) { + dragAssoc->SetDeleteCallback(PedSetQuickDraggedOutCarPositionCB, ped); + } else { + dragAssoc->SetDeleteCallback(PedSetDraggedOutCarPositionCB, ped); + if(ped->CanSetPedState()) CAnimManager::BlendAnimation(ped->GetClump(), ASSOCGRP_STD, ANIM_GETUP1, 1000.0f); + } ped->ReplaceWeaponWhenExitingVehicle(); |