From 53e381b707550119afaed7bc956f3241a8208e5b Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Thu, 17 Jan 2019 12:21:19 +0100 Subject: ... --- src/roster-editor/src/Comm/JoinBattle.elm | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/roster-editor') diff --git a/src/roster-editor/src/Comm/JoinBattle.elm b/src/roster-editor/src/Comm/JoinBattle.elm index 0175a12..470ea66 100644 --- a/src/roster-editor/src/Comm/JoinBattle.elm +++ b/src/roster-editor/src/Comm/JoinBattle.elm @@ -32,8 +32,16 @@ try_encoding model = ("pid", (Json.Encode.string model.player_id)), ( "six", - (Json.Encode.string - (Struct.Flags.force_get_param "six" model.flags) + (Json.Encode.int + ( + case + (String.toInt + (Struct.Flags.force_get_param "six" model.flags) + ) + of + (Just ix) -> ix + _ -> -1 + ) ) ), ( -- cgit v1.2.3-70-g09d2