diff --git a/GlobalMethods.h b/GlobalMethods.h index 361db96..6aba34d 100644 --- a/GlobalMethods.h +++ b/GlobalMethods.h @@ -1019,8 +1019,8 @@ namespace LuaGlobalFunctions uint8 addedItems = 0; while (addedItems <= MAX_MAIL_ITEMS && i + 2 <= argAmount) { - uint32 entry = luaL_checkunsigned(L, ++i); - uint32 amount = luaL_checkunsigned(L, ++i); + uint32 entry = Eluna::CHECKVAL(L, ++i); + uint32 amount = Eluna::CHECKVAL(L, ++i); #ifndef TRINITY ItemTemplate const* item_proto = ObjectMgr::GetItemPrototype(entry);