]> git.localhorst.tv Git - blobs.git/blobdiff - src/creature/goal.cpp
use RK4 to integrate creature state
[blobs.git] / src / creature / goal.cpp
index 8f8a3fa88f2911d2c6e0be6506cd43974df11d7e..ee51a919ba11a71ff7081262b4ebd3f9076c5d10 100644 (file)
@@ -138,7 +138,7 @@ void LocateResourceGoal::Action() {
                }
        } else if (OnTargetTile()) {
                GetSteering().Halt();
-               if (!GetCreature().Moving()) {
+               if (!GetSituation().Moving()) {
                        SetComplete();
                }
        } else {