Merge pull request #32109 from ACCount12/runtime_a_day

Fixes a common runtime on prefs screen
This commit is contained in:
oranges
2017-11-01 09:20:58 +13:00
committed by CitadelStationBot
parent 31e2303e39
commit aa88e61169

View File

@@ -121,14 +121,22 @@
O.transfer_to_limb(src, C)
update_icon_dropped()
forceMove(T)
C.update_health_hud() //update the healthdoll
C.update_body()
C.update_hair()
C.update_canmove()
if(!T) // T = null happens when a "dummy human" used for rendering icons on prefs screen gets its limbs replaced.
qdel(src)
return
if(is_pseudopart)
drop_organs(C) //Psuedoparts shouldn't have organs, but just in case
qdel(src)
return
forceMove(T)
//when a limb is dropped, the internal organs are removed from the mob and put into the limb