propstg / ambulance-mission

Adds an ambulance mission to FiveM/ESX.
GNU General Public License v3.0
20 stars 19 forks source link

prevent checking if peds are dead when unloading/deleting peds #9

Closed propstg closed 5 years ago

propstg commented 5 years ago

IsPedDeadOrDying returns true when a ped has been deleted. this check happens on a separate thread, potentially allowing this to be called on peds that have been deleted by the main thread, when unloading patients at the hospital.

this fix should skip the areAnyPedsDead check when unloading peds at the hospital.