From 79d43f763b1dc7f0ad29e6857059d4e278bd41dc Mon Sep 17 00:00:00 2001 From: uraniummeltdown Date: Thu, 26 Jan 2017 20:57:29 +0400 Subject: [PATCH] reorder check for client --- code/__HELPERS/game.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/__HELPERS/game.dm b/code/__HELPERS/game.dm index c645cc39624..e69f724e80e 100644 --- a/code/__HELPERS/game.dm +++ b/code/__HELPERS/game.dm @@ -478,6 +478,6 @@ proc/pollCandidates(Question, be_special_type, antag_age_check = 0, poll_time = var/mob/M = C if(M.client) C = M.client - if(!C.prefs.windowflashing || !C) + if(!C || !C.prefs.windowflashing) return winset(C, "mainwindow", "flash=5") \ No newline at end of file