diff options
Diffstat (limited to 'scumm/script.cpp')
-rw-r--r-- | scumm/script.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/script.cpp b/scumm/script.cpp index ee3d536183..7d95e4ae4b 100644 --- a/scumm/script.cpp +++ b/scumm/script.cpp @@ -473,7 +473,7 @@ void Scumm::drawBox(int x, int y, int x2, int y2, int color) x2++; y2++; - if (x > 319) + if (x > _realWidth - 1) return; if (x < 0) x = 0; |