aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrunningnak3d <none@none>2010-09-30 21:06:53 -0600
committerrunningnak3d <none@none>2010-09-30 21:06:53 -0600
commitb90c5d67607891ab227c4f2421e93a677dcb7a80 (patch)
tree9a95855d6a30c42c936a2860dab62ccd9c109a95 /src
parent8e9b0647b51c65b4ba6a49aeb425ddd73445d11f (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Chat/Commands/Level2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Chat/Commands/Level2.cpp b/src/server/game/Chat/Commands/Level2.cpp
index cd48de69a67..ac3e6645342 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());