mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 06:21:28 +00:00
[Crash] Fix zone crash caused by NPC::MoveTo (#4639)
This commit is contained in:
parent
91a0e14509
commit
ff86cc3b8a
@ -206,6 +206,9 @@ void NPC::PauseWandering(int pausetime)
|
|||||||
|
|
||||||
void NPC::MoveTo(const glm::vec4 &position, bool saveguardspot)
|
void NPC::MoveTo(const glm::vec4 &position, bool saveguardspot)
|
||||||
{ // makes mob walk to specified location
|
{ // makes mob walk to specified location
|
||||||
|
if (!AI_walking_timer) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (IsNPC() && GetGrid() != 0) { // he is on a grid
|
if (IsNPC() && GetGrid() != 0) { // he is on a grid
|
||||||
if (GetGrid() < 0) { // currently stopped by a quest command
|
if (GetGrid() < 0) { // currently stopped by a quest command
|
||||||
SetGrid(0 - GetGrid()); // get him moving again
|
SetGrid(0 - GetGrid()); // get him moving again
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user