var, not global

This commit is contained in:
Glenn Maynard
2007-05-27 19:09:18 +00:00
parent f72002721c
commit 499d4e3c8f
3 changed files with 5 additions and 4 deletions
+1
View File
@@ -103,6 +103,7 @@ void ScreenSelectMaster::Init()
{
GameCommand& mc = m_aGameCommands[c];
LuaThreadVariable var( "GameCommand", LuaReference::Create(&mc) );
Lua *L = LUA->Get();
mc.PushSelf( L );
lua_setglobal( L, "ThisGameCommand" );