Skip to content

Commit

Permalink
DIRECTOR: Fix cascade failure in VWCR loader
Browse files Browse the repository at this point in the history
  • Loading branch information
moralrecordings committed Jun 21, 2020
1 parent e89112a commit ff2741b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions engines/director/score-loading.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,7 @@ void Score::loadCastDataVWCR(Common::SeekableSubReadStreamEndian &stream) {

uint8 castType = stream.readByte();

int returnPos = stream.pos() + size - 1;
switch (castType) {
case kCastBitmap:
debugC(3, kDebugLoading, "Score::loadCastDataVWCR(): CastTypes id: %d(%s) BitmapCast", id, numToCastNum(id));
Expand Down Expand Up @@ -686,6 +687,7 @@ void Score::loadCastDataVWCR(Common::SeekableSubReadStreamEndian &stream) {
stream.skip(size - 1);
continue;
}
stream.seek(returnPos);
_loadedCast->getVal(id)->_score = this;
}
}
Expand Down

0 comments on commit ff2741b

Please sign in to comment.