From 6a82ead205f4463ee34cc4fcbc06f1b3e7b1dd1a Mon Sep 17 00:00:00 2001 From: nsensfel Date: Mon, 5 Mar 2018 13:51:14 +0100 Subject: Starting to work on the client diff messages. --- src/struct/battle_action.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/struct/battle_action.erl') 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 }. -- cgit v1.2.3-70-g09d2