From 4776f30798ef2f9885a47f07d4534b0274b84729 Mon Sep 17 00:00:00 2001 From: EricWerk Date: Sat, 17 Aug 2019 20:36:47 +0200 Subject: [PATCH] Not sure why you have both a "coord" and a "moveFromCoord", but you want the latter here. --- Assets/Scripts/Behaviour/Animal.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Scripts/Behaviour/Animal.cs b/Assets/Scripts/Behaviour/Animal.cs index 063ba57..40b4be1 100644 --- a/Assets/Scripts/Behaviour/Animal.cs +++ b/Assets/Scripts/Behaviour/Animal.cs @@ -218,7 +218,7 @@ void AnimateMove () { // Finished moving if (moveTime >= 1) { - Environment.RegisterMove (this, coord, moveTargetCoord); + Environment.RegisterMove (this, moveFromCoord, moveTargetCoord); coord = moveTargetCoord; animatingMovement = false;