Skip to content

Commit

Permalink
MADS: Properly skip empty lines in animation files
Browse files Browse the repository at this point in the history
  • Loading branch information
bluegr committed Oct 13, 2014
1 parent 126417a commit 9ca021a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/mads/nebular/menu_nebular.cpp
Expand Up @@ -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;
}

Expand Down

0 comments on commit 9ca021a

Please sign in to comment.