Skip to content

Commit

Permalink
Fix global script 'me' variable. This fixes the win/lose problem.
Browse files Browse the repository at this point in the history
  • Loading branch information
perim committed Nov 20, 2011
1 parent c9fca43 commit bf6e450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qtscript.cpp
Expand Up @@ -377,7 +377,7 @@ bool loadPlayerScript(QString path, int player, int difficulty)

bool loadGlobalScript(QString path)
{
return loadPlayerScript(path, 0, 0);
return loadPlayerScript(path, selectedPlayer, 0);
}

bool saveScriptStates(const char *filename)
Expand Down

0 comments on commit bf6e450

Please sign in to comment.