Runtime fix for trying to use an empty hand on a secure briefcase.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5436 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
aranclanos@hotmail.com
2012-12-31 10:25:55 +00:00
parent 9d0ee3559d
commit eee9bbf94a

View File

@@ -186,11 +186,9 @@
usr << "\red [src] is locked and cannot be opened!"
else if ((src.loc == user) && (!src.locked))
playsound(src.loc, "rustle", 50, 1, -5)
if (user.s_active == src)
if (user.s_active)
user.s_active.close(user) //Close and re-open
src.show_to(user)
else
user.s_active.close(user) //Just close
src.show_to(user)
else
..()
for(var/mob/M in range(1))