| summaryrefslogtreecommitdiff | 
diff options
Diffstat (limited to 'src/roster-editor')
| -rw-r--r-- | src/roster-editor/src/Comm/JoinBattle.elm | 12 | 
1 files changed, 10 insertions, 2 deletions
| 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 +                  )                 )              ),              ( | 


