init_routines was moved back to globals.
authorLuis Ontanon <luis.ontanon@gmail.com>
Tue, 7 Feb 2006 03:47:13 +0000 (03:47 -0000)
committerLuis Ontanon <luis.ontanon@gmail.com>
Tue, 7 Feb 2006 03:47:13 +0000 (03:47 -0000)
svn path=/trunk/; revision=17192

plugins/lua/lua_proto.c

index b7f1165c3c872cc6550d0ce82da3d3b93fd1d701..dd288cb192b05db6483c7c1ddf4ae91c330aebc4 100644 (file)
@@ -874,7 +874,7 @@ static int Proto_set_init(lua_State* L) {
     if (lua_isfunction(L,3)) {
         /* insert the dissector into the dissectors table */
         lua_pushstring(L, LUA_INIT_ROUTINES);
-        lua_gettable(L, LUA_REGISTRYINDEX);
+        lua_gettable(L, LUA_GLOBALSINDEX);
         lua_replace(L, 1);
         lua_pushstring(L,proto->name);
         lua_replace(L, 2);