summaryrefslogtreecommitdiff
path: root/lib/LuaConfigFile.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/LuaConfigFile.cc')
-rw-r--r--lib/LuaConfigFile.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/LuaConfigFile.cc b/lib/LuaConfigFile.cc
index 5c7cde9..dc0dc5f 100644
--- a/lib/LuaConfigFile.cc
+++ b/lib/LuaConfigFile.cc
@@ -101,7 +101,7 @@ int sLua_ConfigFile::ConfigFile_proceed_statics(Lua * L, int n, int caller) {
switch (caller) {
case CONFIGFILE_NEWCONFIGFILE:
- h = (Handle *) LuaObject::getme(L, 1);
+ h = L->recast<Handle>(1);
{
LuaConfigFile c(new ConfigFile(h));
c.pushdestruct(L);