summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/struct/battle_action.erl')
-rw-r--r--src/struct/battle_action.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/struct/battle_action.erl b/src/struct/battle_action.erl
index d6bda92..b55a92e 100644
--- a/src/struct/battle_action.erl
+++ b/src/struct/battle_action.erl
@@ -49,7 +49,7 @@
-spec decode_mov_action (map()) -> struct().
decode_mov_action (JSONMap) ->
PathInBinary = maps:get(<<"p">>, JSONMap),
- Path = lists:map(fun direction:from_binary/1, PathInBinary),
+ Path = lists:map(fun direction:decode/1, PathInBinary),
#move { path = Path }.