Fixes AI power supplies runtiming after deletion

This commit is contained in:
Krausus
2015-08-18 01:43:45 -04:00
parent c3ec8d63f8
commit 621341317d
+2
View File
@@ -242,6 +242,7 @@ var/list/ai_verbs_default = list(
powered_ai = ai
if(isnull(powered_ai))
qdel(src)
return
loc = powered_ai.loc
use_power(1) // Just incase we need to wake up the power system.
@@ -251,6 +252,7 @@ var/list/ai_verbs_default = list(
/obj/machinery/ai_powersupply/process()
if(!powered_ai || powered_ai.stat & DEAD)
qdel(src)
return
if(!powered_ai.anchored)
loc = powered_ai.loc
use_power = 0