From 9ca021a0d27acf1b9277509b7c0429634a3f0bc2 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Tue, 14 Oct 2014 00:31:38 +0300 Subject: MADS: Properly skip empty lines in animation files --- engines/mads/nebular/menu_nebular.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/mads/nebular/menu_nebular.cpp') 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; } -- cgit v1.2.3