Merge
authorunc0rr
Thu, 29 Aug 2013 12:02:16 +0400
changeset 9442 fea1613ae91f
parent 9439 e0570f2e5f41 (diff)
parent 9440 8a75d5d73787 (current diff)
child 9444 30748b1d9ec7
Merge
--- a/gameServer/Actions.hs	Thu Aug 29 11:48:02 2013 +0400
+++ b/gameServer/Actions.hs	Thu Aug 29 12:02:16 2013 +0400
@@ -665,9 +665,11 @@
         allci <- allClientsM rnc
         filterM (client'sM rnc isReadyChecker) allci
 
-    when (not $ null readyCheckersIds)
-        $ withStateT (\s -> s{clientIndex = Just $ head readyCheckersIds})
+    when (not $ null readyCheckersIds) $ do
+        oldci <- gets clientIndex
+        withStateT (\s -> s{clientIndex = Just $ head readyCheckersIds})
             $ processAction CheckRecord
+        modify (\s -> s{clientIndex = oldci})
     where
         isReadyChecker cl = isChecker cl && isReady cl