WolfHUD icon indicating copy to clipboard operation
WolfHUD copied to clipboard

Fix for 2 crashes - EnemyHealth.lua

Open Vlad-00003 opened this issue 7 years ago • 1 comments

This should fix 2 crasehs:

  1. The mod crashes the game if you shoot at the doors locks
  2. The mod crashes the game if you looking at forklift on Alesso heist. Firstly - _last_unit doesn't seems to always have character_damage And secondly - _HEALTH_INIT and _last_unit:base() doesn't always exists. I have no idea why, but this changes are fixing it.

Vlad-00003 avatar Nov 02 '17 21:11 Vlad-00003

@Kamikaze94, so? This is crusual update...

Vlad-00003 avatar Nov 05 '17 15:11 Vlad-00003