Established a connection between the Region objects and lua

This commit is contained in:
Kayne Ruse
2014-03-28 04:11:34 +11:00
parent 38b603fc8f
commit 4cff57fe71
5 changed files with 58 additions and 4 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ void LuaGenerator::Create(Region** const ptr, int width, int height, int depth,
//generate the lua-driven maps
lua_getglobal(state, "CreateRegion");
lua_pushlightuserdata(state, ptr);
lua_pushlightuserdata(state, *ptr);
lua_pcall(state, 1, 0, 0);
}