diff options
Diffstat (limited to 'engines/startrek/textbox.cpp')
-rw-r--r-- | engines/startrek/textbox.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/startrek/textbox.cpp b/engines/startrek/textbox.cpp index a6fc0d0ee2..a503c42a81 100644 --- a/engines/startrek/textbox.cpp +++ b/engines/startrek/textbox.cpp @@ -654,7 +654,7 @@ String StarTrekEngine::readTextFromArrayWithChoices(int choiceIndex, uintptr dat const char *headerText = textArray[0]; const char *mainText = textArray[choiceIndex + 1]; - if (*mainText == '\0') + if (mainText == nullptr || *mainText == '\0') return Common::String(); // Technically should be nullptr... if (headerTextOutput != nullptr) { |