Fix admin follow runtime (#43282)

Fixed a minor runtime caused by admins clicking a follow link while in
the lobby.
This commit is contained in:
ShizCalev
2019-03-24 01:50:50 -04:00
committed by Tad Hardesty
parent ac9dd6bc09
commit 93c9fb4cd3
2 changed files with 8 additions and 2 deletions
+5 -1
View File
@@ -930,8 +930,12 @@
var/atom/movable/AM = locate(href_list["adminplayerobservefollow"])
var/client/C = usr.client
var/can_ghost = TRUE
if(!isobserver(usr))
C.admin_ghost()
can_ghost = C.admin_ghost()
if(!can_ghost)
return
var/mob/dead/observer/A = C.mob
A.ManualFollow(AM)