# HG changeset patch # User Emmanuel Gil Peyrot # Date 1567958983 -7200 # Node ID 464c1b02a996e88858a831ccf70628122b7366fb # Parent 377c241be5597cd4d6b9f619243207e5a54d0bc5 ecl_vm: Fix SetPosition. diff --git a/src/th06/ecl_vm.rs b/src/th06/ecl_vm.rs --- a/src/th06/ecl_vm.rs +++ b/src/th06/ecl_vm.rs @@ -494,8 +494,9 @@ impl EclRunner { // 43 SubInstruction::SetPosition(x, y, z) => { + let (x, y, z) = (self.get_f32(x), self.get_f32(y), self.get_f32(z)); let mut enemy = self.enemy.borrow_mut(); - enemy.set_pos(self.get_f32(x), self.get_f32(y), self.get_f32(z)); + enemy.set_pos(x, y, z); } // 44 /*