diff options
-rw-r--r-- | engines/agos/oracle.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/agos/oracle.cpp b/engines/agos/oracle.cpp index 782c834868..122f800e78 100644 --- a/engines/agos/oracle.cpp +++ b/engines/agos/oracle.cpp @@ -180,7 +180,7 @@ void AGOSEngine_Feeble::oracleTextUp() { if (_textWindow->scrollY > _oracleMaxScrollY) // For scroll up _oracleMaxScrollY = _textWindow->scrollY; - while (1) { + while (!shouldQuit()) { if (_textWindow->scrollY == _oracleMaxScrollY) break; _textWindow->textRow = 105; @@ -214,7 +214,7 @@ void AGOSEngine_Feeble::oracleTextDown() { if (_textWindow->scrollY > _oracleMaxScrollY) // For scroll up _oracleMaxScrollY = _textWindow->scrollY; - while (1) { + while (!shouldQuit()) { if (_textWindow->scrollY == 0) break; |