diff --git a/src/app/script/plugin_class.cpp b/src/app/script/plugin_class.cpp index 18e85ea66..857a94b42 100644 --- a/src/app/script/plugin_class.cpp +++ b/src/app/script/plugin_class.cpp @@ -141,7 +141,7 @@ int Plugin_newCommand(lua_State* L) group = s; } lua_pop(L, 1); - + int type = lua_getfield(L, 2, "onenabled"); if (type == LUA_TFUNCTION) { onenabledRef = luaL_ref(L, LUA_REGISTRYINDEX); // does a pop