diff --git a/code/modules/admin/admin_verbs.dm b/code/modules/admin/admin_verbs.dm index a7a6e1a320..7966ec2939 100644 --- a/code/modules/admin/admin_verbs.dm +++ b/code/modules/admin/admin_verbs.dm @@ -64,18 +64,18 @@ else //ghostize var/mob/body = mob - var/mob/observer/dead/ghost = body.ghostize(1) - ghost.admin_ghosted = 1 - log_and_message_admins("[key_name(src)] admin-ghosted.") // CHOMPEdit - Add logging. + var/mob/observer/dead/ghost if(build_mode) togglebuildmode(body) ghost = body.ghostize(1) ghost.admin_ghosted = 1 + log_and_message_admins("[key_name(src)] admin-ghosted.") // CHOMPEdit - Add logging. if(build_mode == "Yes") togglebuildmode(ghost) else ghost = body.ghostize(1) ghost.admin_ghosted = 1 + log_and_message_admins("[key_name(src)] admin-ghosted.") // CHOMPEdit - Add logging. if(body) body.teleop = ghost if(!body.key)