diff --git a/src/obj/TemporaryState.py b/src/obj/TemporaryState.py index 2ca6b0c..2d683c2 100644 --- a/src/obj/TemporaryState.py +++ b/src/obj/TemporaryState.py @@ -18,9 +18,9 @@ class TemporaryState(Waiter): self.h = h def replace(self, repl): + self.cost_so_far = copy.copy(repl.cost_so_far) self.basket = copy.copy(repl.basket) self.parent = repl.parent - self.cost_so_far = repl.cost_so_far def apply_transformation(self): if self.agent_role == "left":