Makes gibtonite check if it has wires before closing TGUI windows

This commit is contained in:
joep van der velden
2020-10-02 20:54:43 +02:00
parent 26bbfb1175
commit 7ac9bf46c2
+3 -2
View File
@@ -220,8 +220,9 @@ GLOBAL_LIST_INIT(sand_recipes, list(\
var/datum/wires/explosive/gibtonite/wires
/obj/item/twohanded/required/gibtonite/Destroy()
SStgui.close_uis(wires)
QDEL_NULL(wires)
if(wires)
SStgui.close_uis(wires)
QDEL_NULL(wires)
return ..()
/obj/item/twohanded/required/gibtonite/attackby(obj/item/I, mob/user, params)