* Added sanity check for > 100 waypoints since levels > 100 aren't supported

* Author Kaelima

--HG--
branch : trunk
This commit is contained in:
Brian
2010-01-14 15:39:11 -07:00
parent 1fcafbc938
commit 5fd047cd90

View File

@@ -3058,7 +3058,10 @@ bool ChatHandler::HandleWpShowCommand(const char* args)
{
wpCreature->SetDisplayId(target->GetDisplayId());
wpCreature->SetFloatValue(OBJECT_FIELD_SCALE_X, 0.5);
wpCreature->SetLevel(point);
if(point > 100)
wpCreature->SetLevel(100);
else
wpCreature->SetLevel(point);
}
}
while( result->NextRow() );