[Scummvm-cvs-logs] SF.net SVN: scummvm:[52856] scummvm/trunk/engines/agi/inv.cpp
tdhs at users.sourceforge.net
tdhs at users.sourceforge.net
Wed Sep 22 22:05:11 CEST 2010
Revision: 52856
http://scummvm.svn.sourceforge.net/scummvm/?rev=52856&view=rev
Author: tdhs
Date: 2010-09-22 20:05:10 +0000 (Wed, 22 Sep 2010)
Log Message:
-----------
AGI: Fix for Bug #3067263 "SQ2: ScummVM hanging on the inventory screen"
This was due to a loop in AgiEngine::selectItems(int n), which lacked a check
that the engine was quitting or restarting.
Modified Paths:
--------------
scummvm/trunk/engines/agi/inv.cpp
Modified: scummvm/trunk/engines/agi/inv.cpp
===================================================================
--- scummvm/trunk/engines/agi/inv.cpp 2010-09-22 19:39:54 UTC (rev 52855)
+++ scummvm/trunk/engines/agi/inv.cpp 2010-09-22 20:05:10 UTC (rev 52856)
@@ -114,7 +114,7 @@
int fsel = 0;
bool exit_select = false;
- while (!exit_select) {
+ while (!exit_select && !(shouldQuit() || _restartGame)) {
if (n > 0)
printItem(fsel, STATUS_BG, STATUS_FG);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list