summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornsensfel <SpamShield0@noot-noot.org>2018-03-14 13:00:41 +0100
committernsensfel <SpamShield0@noot-noot.org>2018-03-14 13:00:41 +0100
commitde99545b01770af0be62b73209bb992b40b6c3d2 (patch)
tree01fbdd9aacceb511c1f29b82cba5085e06d5b6c0 /src/struct/battle.erl
parentf3868d956b17f9606e7b7321914e7c08316a062c (diff)
Reverses some lists.timeline
Diffstat (limited to 'src/struct/battle.erl')
-rw-r--r--src/struct/battle.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/struct/battle.erl b/src/struct/battle.erl
index bf2b010..5ac12e4 100644
--- a/src/struct/battle.erl
+++ b/src/struct/battle.erl
@@ -60,7 +60,7 @@ get_all_timelines (Result, CurrentIndex, EndPoint, ArraySize, Players) ->
Player = array:get(CurrentIndex, Players),
Timeline = player:get_timeline(Player),
NextIndex = ((CurrentIndex + 1) rem ArraySize),
- NextResult = (Result ++ Timeline),
+ NextResult = (Timeline ++ Result),
case CurrentIndex of
EndPoint ->
NextResult;