Fix commlink runtime

Probably when NIF is being destroyed.
This commit is contained in:
Arokha Sieyes
2018-02-24 17:19:49 -05:00
parent f29484f8da
commit 16d2dfe333
+3 -2
View File
@@ -14,8 +14,9 @@
nif.comm = new(nif,src)
uninstall()
if((. = ..()))
qdel_null(nif.comm)
var/obj/item/device/nif/lnif = nif //Awkward. Parent clears it in an attempt to clean up.
if((. = ..()) && lnif)
qdel_null(lnif.comm)
activate()
if((. = ..()))