From 3d02d1c50eb98265400f3ea03f3f79c557dbdc58 Mon Sep 17 00:00:00 2001 From: Daniel Zaoui Date: Mon, 29 Oct 2018 00:07:10 +0200 Subject: [PATCH] Player: use the source scenario for the exu destination When changes are made in the source actions list (stabilize-shots...), the modifications will be stored in the exu destination. This is not what we want. This patch fixes it by storing the original source scenario into the destination exu. --- src/bin/player.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/bin/player.c b/src/bin/player.c index 140a4b0..65205da 100644 --- a/src/bin/player.c +++ b/src/bin/player.c @@ -1232,7 +1232,13 @@ int main(int argc, char **argv) if (_dest && _dest_unit) { - if (_src_unit) _dest_unit->actions = _src_unit->actions; + if (_src_unit) + { + Exactness_Unit *tmp = NULL; + if (_src_type == FTYPE_EXU) tmp = exactness_unit_file_read(_src_filename); + if (_src_type == FTYPE_REC) tmp = legacy_rec_file_read(_src_filename); + _dest_unit->actions = tmp->actions; + } exactness_unit_file_write(_dest_unit, _dest); }