From 5e008a5a97268965e5cd1394bc14a94c48e55218 Mon Sep 17 00:00:00 2001 From: Paul Coene Date: Wed, 3 Apr 2019 15:56:12 -0400 Subject: [PATCH] Fix SetCurrentWP to allow negatives Needed to make new roambox constants (that were used instead of 666) actually work. --- zone/mob.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/mob.h b/zone/mob.h index c9f1de58c6..18cdfeceb8 100644 --- a/zone/mob.h +++ b/zone/mob.h @@ -1091,7 +1091,7 @@ class Mob : public Entity { inline glm::vec4 GetCurrentWayPoint() const { return m_CurrentWayPoint; } inline float GetCWPP() const { return(static_cast(cur_wp_pause)); } inline int GetCWP() const { return(cur_wp); } - void SetCurrentWP(uint16 waypoint) { cur_wp = waypoint; } + void SetCurrentWP(int waypoint) { cur_wp = waypoint; } virtual FACTION_VALUE GetReverseFactionCon(Mob* iOther) { return FACTION_INDIFFERENT; } virtual const bool IsUnderwaterOnly() const { return false; }