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