mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
fix fatal warning (#337)
This commit is contained in:
@@ -1571,10 +1571,7 @@ namespace LuaUnit
|
||||
uint8 newlevel = Eluna::CHECKVAL<uint8>(L, 2);
|
||||
|
||||
if (newlevel < 1)
|
||||
return 0;
|
||||
|
||||
if (newlevel > STRONG_MAX_LEVEL)
|
||||
newlevel = STRONG_MAX_LEVEL;
|
||||
return luaL_argerror(L, 2, "level cannot be below 1");
|
||||
|
||||
if (Player* player = unit->ToPlayer())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user