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.

svn-id: r52856
This commit is contained in:
David Turner 2010-09-22 20:05:10 +00:00
parent b11263be90
commit 4b7a9b29fe

View File

@ -114,7 +114,7 @@ void AgiEngine::selectItems(int n) {
int fsel = 0;
bool exit_select = false;
while (!exit_select) {
while (!exit_select && !(shouldQuit() || _restartGame)) {
if (n > 0)
printItem(fsel, STATUS_BG, STATUS_FG);