summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2019-10-09 13:05:04 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2019-10-09 13:05:04 +0200
commit5172e8d4a9fe225e0b867366f9524f51ad19c069 (patch)
tree552a2feaf5ec17e2882ca427817ff90ec5eaa005
parent58a79724d52fd9e1abbc1faaaea6442f8b008610 (diff)
downloadataxia-5172e8d4a9fe225e0b867366f9524f51ad19c069.zip
ataxia-5172e8d4a9fe225e0b867366f9524f51ad19c069.tar.bz2
Pretty sure the lists should be reverse.
-rw-r--r--src/ataxic_optimize.erl8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ataxic_optimize.erl b/src/ataxic_optimize.erl
index ea352b6..1eadb79 100644
--- a/src/ataxic_optimize.erl
+++ b/src/ataxic_optimize.erl
@@ -92,7 +92,7 @@ optimize_update_field_sequence (UnsortedOPs, CurrentResults) ->
ataxic:update_field
(
CurrentIX,
- ataxic:sequence(CurrentOPs)
+ ataxic:sequence(lists:reverse(CurrentOPs))
)
|CurrentResult
]
@@ -117,7 +117,11 @@ optimize_update_field_sequence (UnsortedOPs, CurrentResults) ->
];
_ ->
[
- ataxic:update_field(LastIX, ataxic:sequence(LastUpdateOPs))
+ ataxic:update_field
+ (
+ LastIX,
+ ataxic:sequence(lists:reverse(LastUpdateOPs))
+ )
|OtherMergedFieldUpdates
]
end