Skip to content

Commit

Permalink
DIRECTOR: Handle 0 byte Fmap in Cast::loadFontMapV4
Browse files Browse the repository at this point in the history
  • Loading branch information
einstein95 committed Oct 21, 2021
1 parent 9db226b commit 46f541e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions engines/director/fonts.cpp
Expand Up @@ -66,6 +66,9 @@ void Cast::loadFontMap(Common::SeekableReadStreamEndian &stream) {
}

void Cast::loadFontMapV4(Common::SeekableReadStreamEndian &stream) {
if (stream.size() == 0)
return;

debugC(2, kDebugLoading, "****** Loading FontMap Fmap");

uint32 mapLength = stream.readUint32();
Expand Down

0 comments on commit 46f541e

Please sign in to comment.