Attempted fix #3769

Var is fine in one line, null in next one. Cannot feasibly prevent that without slapping nullcheck before EVERY mention on that var, so going to just add some sanity checks and call it a day
This commit is contained in:
Chinsky
2013-10-16 11:28:41 +04:00
parent d85940ff3b
commit f3028d3edd
2 changed files with 2 additions and 0 deletions
@@ -348,6 +348,7 @@
/obj/structure/table/attackby(obj/item/W as obj, mob/user as mob)
if (!W) return
if (istype(W, /obj/item/weapon/grab) && get_dist(src,user)<2)
var/obj/item/weapon/grab/G = W
if (istype(G.affecting, /mob/living))