aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/mads/nebular/menu_nebular.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/mads/nebular/menu_nebular.cpp b/engines/mads/nebular/menu_nebular.cpp
index 355cef60a4..1cee544e34 100644
--- a/engines/mads/nebular/menu_nebular.cpp
+++ b/engines/mads/nebular/menu_nebular.cpp
@@ -953,7 +953,7 @@ void AnimationView::processLines() {
_currentLine.clear();
char c;
while (!_script.eos() && (c = _script.readByte()) != '\n') {
- if (c != '\r')
+ if (c != '\r' && c != '\0')
_currentLine += c;
}