This commit is contained in:
adelikat 2009-02-22 18:23:25 +00:00
parent d2cae8aef0
commit 0dfb58362e
1 changed files with 1 additions and 1 deletions

View File

@ -680,7 +680,7 @@ int main(int argc,char *argv[])
free(StateToLoad);
StateToLoad = NULL;
}
if(LuaToLoad);
if(GameInfo && LuaToLoad)
{
FCEU_LoadLuaCode(LuaToLoad);
free(LuaToLoad);