Fixed nulls in the active_alternate_appearances list (#568)
This commit is contained in:
committed by
Poojawa
parent
f881683902
commit
4cf23d086a
@@ -0,0 +1,19 @@
|
||||
diff a/code/game/alternate_appearance.dm b/code/game/alternate_appearance.dm (rejected hunks)
|
||||
@@ -29,12 +29,11 @@ GLOBAL_LIST_EMPTY(active_alternate_appearances)
|
||||
appearance_key = key
|
||||
|
||||
/datum/atom_hud/alternate_appearance/Destroy()
|
||||
- if(!QDELETED(src))
|
||||
- for(var/v in hudusers)
|
||||
- remove_hud_from(v)
|
||||
- for(var/v in hudatoms)
|
||||
- remove_from_hud(v)
|
||||
- GLOB.active_alternate_appearances -= src
|
||||
+ for(var/v in hudusers)
|
||||
+ remove_hud_from(v)
|
||||
+ for(var/v in hudatoms)
|
||||
+ remove_from_hud(v)
|
||||
+ GLOB.active_alternate_appearances -= src
|
||||
return ..()
|
||||
|
||||
/datum/atom_hud/alternate_appearance/proc/onNewMob(mob/M)
|
||||
Reference in New Issue
Block a user