Skip to content
Permalink
Browse files

DIRECTOR: LINGO: Fix toString() when score was not loaded

  • Loading branch information
sev- committed Jan 13, 2020
1 parent dcc530f commit dd4681e195604f5952226f75a2bdfc468d9251c6
Showing with 6 additions and 0 deletions.
  1. +6 −0 engines/director/lingo/lingo.cpp
@@ -411,6 +411,12 @@ Common::String *Datum::toString() {
int idx = u.i;
Score *score = g_director->getCurrentScore();

if (!score) {
warning("toString(): No score");
*s = "";
break;
}

if (!score->_loadedCast->contains(idx)) {
if (!score->_loadedCast->contains(idx - score->_castIDoffset)) {
warning("toString(): Unknown REFERENCE %d", idx);

0 comments on commit dd4681e

Please sign in to comment.
You can’t perform that action at this time.