From 2a2e5b56d897af14db81dcf425ddb4c8b1229805 Mon Sep 17 00:00:00 2001 From: Rochet2 Date: Mon, 28 Jul 2014 18:34:09 +0300 Subject: [PATCH] Remove the lua utility functions and use our own --- GlobalMethods.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);