mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-02 23:01:42 +00:00
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:
parent
b11263be90
commit
4b7a9b29fe
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user