ACF-Team / ACF-3

ACF
MIT License
67 stars 55 forks source link

ACF Check Driver before dealing damage #312

Closed brandonsturgeon closed 2 years ago

brandonsturgeon commented 2 years ago

If the Driver hasn't taken ACF damage before (Specifically, hasn't been ACF Activated), it won't have an ACF table on it, causing the following error when the Vehicle takes damage:

addons/acf-3/lua/acf/server/damage.lua:362: attempt to index field 'ACF' (a nil value)
   0.  __index - [C]:-1
    1.  SquishyDamage - addons/acf-3/lua/acf/server/damage.lua:362
     2.  ACF_Damage - addons/acf-3/lua/acf/server/damage.lua:442