diff --git a/code/modules/client/client_procs.dm b/code/modules/client/client_procs.dm index 849acd5ba6e..f2b213c3b6d 100644 --- a/code/modules/client/client_procs.dm +++ b/code/modules/client/client_procs.dm @@ -596,7 +596,10 @@ GLOBAL_LIST_INIT(blacklisted_builds, list( GLOB.clients -= src GLOB.directory -= ckey - persistent_client.set_client(null) + if(persistent_client) + persistent_client.set_client(null) + else + stack_trace("A client was Del()'d without a persistent_client! This should not be happening.") log_access("Logout: [key_name(src)]") GLOB.ahelp_tickets.ClientLogout(src)