don't hang on goalie selection
This commit is contained in:
1 parent
c6c461f584
commit
405ca1c5c7
2 files changed
+10
-4
No files matched your search
@@ -99,7 +99,10 @@ setGameGoalie gid s = fromMaybe s $ do
|
||||
& gYtd %~ updateStats
|
||||
& gLifetime %~ updateStats
|
||||
|
||||
updateGameState gs = gs
|
||||
& gameGoalieStats %~ updateMap gid newGoalieStats updateStats
|
||||
& gameGoalieAssigned .~ True
|
||||
|
||||
Just $ s
|
||||
& database.dbGoalies %~ modifyNth gid updateGoalie
|
||||
& progMode.gameStateL.gameGoalieStats
|
||||
%~ updateMap gid newGoalieStats updateStats
|
||||
& database.dbGoalies %~ modifyNth gid updateGoalie
|
||||
& progMode.gameStateL %~ updateGameState
|
||||
Reference in new issue
Block a user