From ff86cc3b8add05f55552a782fc440a4ecf52e4c5 Mon Sep 17 00:00:00 2001 From: catapultam-habeo <97849758+catapultam-habeo@users.noreply.github.com> Date: Mon, 3 Feb 2025 17:29:39 -0600 Subject: [PATCH] [Crash] Fix zone crash caused by NPC::MoveTo (#4639) --- zone/waypoints.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zone/waypoints.cpp b/zone/waypoints.cpp index bb071ed1a..5904c83ad 100644 --- a/zone/waypoints.cpp +++ b/zone/waypoints.cpp @@ -206,6 +206,9 @@ void NPC::PauseWandering(int pausetime) void NPC::MoveTo(const glm::vec4 &position, bool saveguardspot) { // makes mob walk to specified location + if (!AI_walking_timer) { + return; + } if (IsNPC() && GetGrid() != 0) { // he is on a grid if (GetGrid() < 0) { // currently stopped by a quest command SetGrid(0 - GetGrid()); // get him moving again