mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-22 04:37:45 +01:00
More missed limb icon null checks.
-Should probably decrease crashing even further.
This commit is contained in:
@@ -193,7 +193,7 @@ var/global/list/damage_icon_parts = list()
|
||||
var/damage_appearance = ""
|
||||
|
||||
for(var/obj/item/organ/external/O in organs)
|
||||
if(O.is_stump())
|
||||
if(isnull(O) || O.is_stump())
|
||||
continue
|
||||
damage_appearance += O.damage_state
|
||||
|
||||
@@ -209,7 +209,7 @@ var/global/list/damage_icon_parts = list()
|
||||
|
||||
// blend the individual damage states with our icons
|
||||
for(var/obj/item/organ/external/O in organs)
|
||||
if(O.is_stump())
|
||||
if(isnull(O) || O.is_stump())
|
||||
continue
|
||||
|
||||
O.update_icon()
|
||||
|
||||
Reference in New Issue
Block a user