diff options
author | Jasper Van der Jeugt | 2020-08-04 12:48:42 +0200 |
---|---|---|
committer | Jasper Van der Jeugt | 2020-08-04 12:48:42 +0200 |
commit | d1b1068d0c9dad94734438ddd6f5cfcec77396dd (patch) | |
tree | a42907adb3e155bd81a227b29153f163b1ffac49 /server/lib | |
parent | 5fd4956c8335487abc91c603affd567324eea95c (diff) |
Bugfix
Diffstat (limited to 'server/lib')
-rw-r--r-- | server/lib/Cafp/Game.hs | 2 | ||||
-rw-r--r-- | server/lib/Cafp/Messages.hs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/server/lib/Cafp/Game.hs b/server/lib/Cafp/Game.hs index c5bd461..4a7bc91 100644 --- a/server/lib/Cafp/Game.hs +++ b/server/lib/Cafp/Game.hs @@ -272,7 +272,7 @@ gameViewForPlayer self game = TableVoting black shuffled votes -> Voting black (fst <$> shuffled) - (fromMaybe 0 $ V.findIndex ((self `elem`) . snd) shuffled) + (V.findIndex ((self `elem`) . snd) shuffled) (HMS.lookup self votes) TableTally black voted -> Tally black voted in GameView diff --git a/server/lib/Cafp/Messages.hs b/server/lib/Cafp/Messages.hs index 4e5123d..b572fb7 100644 --- a/server/lib/Cafp/Messages.hs +++ b/server/lib/Cafp/Messages.hs @@ -49,8 +49,8 @@ data TableView | Voting !BlackCard !(Vector (Vector WhiteCard)) -- ^ Proposals to vote for - !Int -- ^ My proposal - !(Maybe Int) -- ^ My vote + !(Maybe Int) -- ^ My proposal + !(Maybe Int) -- ^ My vote | Tally !BlackCard !(Vector VotedView) deriving (Show) |