diff --git a/code/game/machinery/cryopod.dm b/code/game/machinery/cryopod.dm index 57d20ca3c2b..6c46ea6ceea 100644 --- a/code/game/machinery/cryopod.dm +++ b/code/game/machinery/cryopod.dm @@ -487,32 +487,33 @@ if(istype(G, /obj/item/weapon/grab)) + var/obj/item/weapon/grab/grab = G if(occupant) user << "\The [src] is in use." return - if(!ismob(G:affecting)) + if(!ismob(grab.affecting)) return - if(!check_occupant_allowed(G:affecting)) + if(!check_occupant_allowed(grab.affecting)) return var/willing = null //We don't want to allow people to be forced into despawning. - var/mob/M = G:affecting + var/mob/M = grab.affecting if(M.client) if(alert(M,"Would you like to enter long-term storage?",,"Yes","No") == "Yes") - if(!M || !G || !G:affecting) return + if(!M || !grab || !grab:affecting) return willing = 1 else willing = 1 if(willing) - visible_message("[user] starts putting [G:affecting:name] into \the [src].", 3) + visible_message("\The [user] starts putting [grab:affecting:name] into \the [src].", 3) if(do_after(user, 20)) - if(!M || !G || !G:affecting) return + if(!M || !grab || !grab:affecting) return M.forceMove(src)