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
This commit is contained in:
@@ -3045,7 +3045,7 @@ bool ChatHandler::HandleWpShowCommand(const char* args)
|
|||||||
{
|
{
|
||||||
wpCreature->SetDisplayId(target->GetDisplayId());
|
wpCreature->SetDisplayId(target->GetDisplayId());
|
||||||
wpCreature->SetFloatValue(OBJECT_FIELD_SCALE_X, 0.5);
|
wpCreature->SetFloatValue(OBJECT_FIELD_SCALE_X, 0.5);
|
||||||
wpCreature->SetLevel(point);
|
wpCreature->SetLevel(point > STRONG_MAX_LEVEL ? STRONG_MAX_LEVEL : point);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
while (result->NextRow());
|
while (result->NextRow());
|
||||||
|
|||||||
Reference in New Issue
Block a user