Bugfix: Reset variables after pathfinding class switches