# HG changeset patch # User unc0rr # Date 1377762482 -14400 # Node ID 8a75d5d7378778b700d7e9573fe15b992afb50aa # Parent 8d1e9a9dda8e7899600edcf22582a8078e00be41 Unbreak server diff -r 8d1e9a9dda8e -r 8a75d5d73787 gameServer/Actions.hs --- a/gameServer/Actions.hs Thu Aug 29 10:06:19 2013 +0400 +++ b/gameServer/Actions.hs Thu Aug 29 11:48:02 2013 +0400 @@ -665,9 +665,9 @@ allci <- allClientsM rnc filterM (client'sM rnc isReadyChecker) allci - when (not $ null readyCheckersIds) $ do - modify (\s -> s{clientIndex = Just $ head readyCheckersIds}) - processAction CheckRecord + when (not $ null readyCheckersIds) + $ withStateT (\s -> s{clientIndex = Just $ head readyCheckersIds}) + $ processAction CheckRecord where isReadyChecker cl = isChecker cl && isReady cl