mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Fixes component cleanup
This commit is contained in:
@@ -22,10 +22,16 @@
|
|||||||
continue
|
continue
|
||||||
qdel(timer)
|
qdel(timer)
|
||||||
var/list/dc = datum_components
|
var/list/dc = datum_components
|
||||||
for(var/I in dc)
|
if(dc)
|
||||||
|
var/all_components = dc[/datum/component]
|
||||||
|
if(islist(all_components))
|
||||||
|
for(var/I in all_components)
|
||||||
var/datum/component/C = I
|
var/datum/component/C = I
|
||||||
C._RemoveNoSignal()
|
C._RemoveNoSignal()
|
||||||
qdel(C)
|
qdel(C)
|
||||||
if(dc)
|
else
|
||||||
|
var/datum/component/C = all_components
|
||||||
|
C._RemoveNoSignal()
|
||||||
|
qdel(C)
|
||||||
dc.Cut()
|
dc.Cut()
|
||||||
return QDEL_HINT_QUEUE
|
return QDEL_HINT_QUEUE
|
||||||
Reference in New Issue
Block a user