HUGO: Fix game restoring

svn-id: r52145
This commit is contained in:
Eugene Sandulenko 2010-08-17 11:00:00 +00:00
parent 2a3f985566
commit 789219022a

View File

@ -309,7 +309,7 @@ void Parser::lineHandler() {
return;
}
if (!strcmp("restore", _line) && gameStatus.viewState == V_PLAY || gameStatus.viewState == V_IDLE) {
if (!strcmp("restore", _line) && (gameStatus.viewState == V_PLAY || gameStatus.viewState == V_IDLE)) {
_vm.file().restoreGame(gameStatus.saveSlot);
_vm.scheduler().restoreScreen(*_vm._screen_p);
gameStatus.viewState = V_PLAY;