Remove the lua utility functions and use our own

This commit is contained in:
Rochet2
2014-07-28 18:34:09 +03:00
parent 307c3459ef
commit 2a2e5b56d8

View File

@@ -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<uint32>(L, ++i);
uint32 amount = Eluna::CHECKVAL<uint32>(L, ++i);
#ifndef TRINITY
ItemTemplate const* item_proto = ObjectMgr::GetItemPrototype(entry);