aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2016-06-06 08:04:36 +0200
committerEugene Sandulenko2016-06-06 08:05:06 +0200
commit8e4f892ef9e6ad6c2809449373adb8cbad88aa9b (patch)
tree3fbf916c2685ad7a503e3121573d5256a1d38e2e
parent2473348cf05db29ce4d1d1da48cb199199cdc554 (diff)
downloadscummvm-rg350-8e4f892ef9e6ad6c2809449373adb8cbad88aa9b.tar.gz
scummvm-rg350-8e4f892ef9e6ad6c2809449373adb8cbad88aa9b.tar.bz2
scummvm-rg350-8e4f892ef9e6ad6c2809449373adb8cbad88aa9b.zip
GUI: Fixed negative index check
-rw-r--r--gui/ThemeEngine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/ThemeEngine.cpp b/gui/ThemeEngine.cpp
index f093846bec..5e2bbb0419 100644
--- a/gui/ThemeEngine.cpp
+++ b/gui/ThemeEngine.cpp
@@ -865,7 +865,7 @@ void ThemeEngine::queueDD(DrawData type, const Common::Rect &r, uint32 dynamic,
void ThemeEngine::queueDDText(TextData type, TextColor color, const Common::Rect &r, const Common::String &text, bool restoreBg,
bool ellipsis, Graphics::TextAlign alignH, TextAlignVertical alignV, int deltax, const Common::Rect &drawableTextArea) {
- if (type != kTextDataNone && _texts[type] == 0)
+ if (type != kTextDataNone || _texts[type] == 0)
return;
Common::Rect area = r;