don't insert into map in GetEnv

This commit is contained in:
Chris Danford
2005-04-04 23:36:37 +00:00
parent 2fdaf9c72f
commit 1decc81ef9
+1 -1
View File
@@ -1947,7 +1947,7 @@ LuaFunction_NoArgs( CurStyleName, CString( GAMESTATE->m_pCurStyle == NULL ? "n
LuaFunction_NoArgs( GetNumPlayersEnabled, GAMESTATE->GetNumPlayersEnabled() )
LuaFunction_NoArgs( PlayerUsingBothSides, GAMESTATE->PlayerUsingBothSides() )
LuaFunction_NoArgs( GetEasiestNotesDifficulty, GAMESTATE->GetEasiestNotesDifficulty() )
LuaFunction_Str( GetEnv, GAMESTATE->m_mapEnv[str] )
LuaFunction_Str( GetEnv, ( GAMESTATE->m_mapEnv.find(str) != GAMESTATE->m_mapEnv.end() ) ? GAMESTATE->m_mapEnv[str] : "" )
LuaFunction_StrStr( SetEnv, GAMESTATE->m_mapEnv[str1] = str2 )
/* Return an integer into SONGMAN->m_pSongs. This lets us do input checking, which we