Fixes runtime when carbon mobs have no earwear (#26442)

My bad.
This commit is contained in:
coiax
2017-04-22 17:52:34 +01:00
committed by KorPhaeron
parent 1c5b650773
commit ae8b22c49e

View File

@@ -22,7 +22,7 @@
if(C.disabilities & DEAF)
deaf = max(deaf, 1)
else
if(HAS_SECONDARY_FLAG(C.ears, HEALS_EARS))
if(C.ears && HAS_SECONDARY_FLAG(C.ears, HEALS_EARS))
deaf = max(deaf - 1, 1)
ear_damage = max(ear_damage - 0.10, 0)
// if higher than UNHEALING_EAR_DAMAGE, no natural healing occurs.