diff --git a/code/game/gamemodes/game_mode.dm b/code/game/gamemodes/game_mode.dm
index 06c1b4fb18..5283ca29bb 100644
--- a/code/game/gamemodes/game_mode.dm
+++ b/code/game/gamemodes/game_mode.dm
@@ -373,6 +373,12 @@
var/msg = "Roundstart logout report\n\n"
for(var/i in GLOB.mob_living_list)
var/mob/living/L = i
+<<<<<<< HEAD
+=======
+ var/mob/living/carbon/C = L
+ if (istype(C) && !C.last_mind)
+ continue // never had a client
+>>>>>>> e8acf67... Fix bogus var access (#35977)
if(L.ckey && !GLOB.directory[L.ckey])
msg += "[L.name] ([L.ckey]), the [L.job] (Disconnected)\n"