Fixes a hotspot Destroy runtime (#22383)

* Fixes a hotspot Destroy runtime

* The better way
This commit is contained in:
Cyberboss
2016-12-23 13:30:50 +01:00
committed by AnturK
parent 1503cd8f18
commit 3b17a23373
@@ -149,11 +149,11 @@
/obj/effect/hotspot/Destroy()
SetLuminosity(0)
SSair.hotspots -= src
DestroyTurf()
if(isturf(loc))
var/turf/open/T = loc
if(T.active_hotspot == src)
T.active_hotspot = null
DestroyTurf()
loc = null
..()
return QDEL_HINT_PUTINPOOL