From 910a6a60c6bdd963559a957f75c8b31cc43d7293 Mon Sep 17 00:00:00 2001 From: Janos Kovacs Date: Mon, 12 Nov 2012 15:57:51 +0200 Subject: [PATCH] lua-utils: fix mrp_lua_create_object() to handle correctly names --- src/core/lua-utils/object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/lua-utils/object.c b/src/core/lua-utils/object.c index 5f5c353..673f571 100644 --- a/src/core/lua-utils/object.c +++ b/src/core/lua-utils/object.c @@ -121,7 +121,7 @@ void *mrp_lua_create_object(lua_State *L, if (!valid_id(name)) return NULL; - lua_getglobal(L, def->constructor); + mrp_lua_get_class_table(L, def); luaL_checktype(L, -1, LUA_TTABLE); class = lua_gettop(L); } -- 2.7.4