From b90c5d67607891ab227c4f2421e93a677dcb7a80 Mon Sep 17 00:00:00 2001 From: runningnak3d Date: Thu, 30 Sep 2010 21:06:53 -0600 Subject: [PATCH] Core/Misc: Set the hard level of the waypoint wisp to 255. If you for *SOME* reason had more than 255 waypoints, bad things (such as a client crash) would happen. --HG-- branch : trunk --- src/server/game/Chat/Commands/Level2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/game/Chat/Commands/Level2.cpp b/src/server/game/Chat/Commands/Level2.cpp index cd48de69a6..ac3e664534 100644 --- a/src/server/game/Chat/Commands/Level2.cpp +++ b/src/server/game/Chat/Commands/Level2.cpp @@ -3045,7 +3045,7 @@ bool ChatHandler::HandleWpShowCommand(const char* args) { wpCreature->SetDisplayId(target->GetDisplayId()); wpCreature->SetFloatValue(OBJECT_FIELD_SCALE_X, 0.5); - wpCreature->SetLevel(point); + wpCreature->SetLevel(point > STRONG_MAX_LEVEL ? STRONG_MAX_LEVEL : point); } } while (result->NextRow());