mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
Replace hardcoded client(100) and server side (255) level limtation values by defines.
This commit is contained in:
parent
09e8ea2ae6
commit
c798318b7b
8 changed files with 36 additions and 27 deletions
|
|
@ -363,7 +363,7 @@ bool Guild::FillPlayerData(uint64 guid, MemberSlot* memslot)
|
|||
return false;
|
||||
|
||||
plLevel = Player::GetUInt32ValueFromDB(UNIT_FIELD_LEVEL, guid);
|
||||
if(plLevel<1||plLevel>255) // can be at broken `data` field
|
||||
if(plLevel<1||plLevel>STRONG_MAX_LEVEL) // can be at broken `data` field
|
||||
{
|
||||
sLog.outError("Player (GUID: %u) has a broken data in field `characters`.`data`.",GUID_LOPART(guid));
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue