From bad0cd00ee93488f9b9182117f74446441b6fb09 Mon Sep 17 00:00:00 2001 From: Pixel Date: Thu, 28 May 2009 19:58:23 -0700 Subject: Uniformizing the usage of luarecast. --- src/lua-interface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lua-interface.cpp b/src/lua-interface.cpp index 4dc7129..267a615 100644 --- a/src/lua-interface.cpp +++ b/src/lua-interface.cpp @@ -291,7 +291,7 @@ int sLua_baselua_interface::baselua_interface_proceed_statics(Lua * L, int n, in if (L->isstring(1)) { L->load(&Input(L->tostring(1))); } else { - Handle * t = (Handle *) LuaObject::getme(L, 1); + Handle * t = L->recast(1); L->load(t); } } @@ -304,7 +304,7 @@ int sLua_baselua_interface::baselua_interface_proceed_statics(Lua * L, int n, in if (L->isstring(1)) { L->load(&Input(L->tostring(1)), false); } else { - Handle * t = (Handle *) LuaObject::getme(L, 1); + Handle * t = L->recast(1); L->load(t, false); } } -- cgit v1.2.3