Fixes TakeComponent (#32156)

* Fixes TakeComponent

* Add the note about OnTransfer and COMPONENT_INCOMPATIBLE

* Fix behaviour

* Missed datum.dm
This commit is contained in:
Jordan Brown
2017-10-30 04:52:18 -04:00
committed by CitadelStationBot
parent 969f92fb58
commit 47f88be07f
3 changed files with 50 additions and 36 deletions
+2 -2
View File
@@ -27,11 +27,11 @@
if(islist(all_components))
for(var/I in all_components)
var/datum/component/C = I
C._RemoveNoSignal()
C._RemoveFromParent()
qdel(C)
else
var/datum/component/C = all_components
C._RemoveNoSignal()
C._RemoveFromParent()
qdel(C)
dc.Cut()
return QDEL_HINT_QUEUE