aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2019-12-29 12:29:45 +0100
committerEugene Sandulenko2019-12-29 14:15:08 +0100
commitd613fae5927ae6a2a6e2fe73706d58ac22834f78 (patch)
treef19ab1282b4ee5a71166e356935726114828b728
parent0e6d960d4613ca1f4ca3d14970fd4127d9534e36 (diff)
downloadscummvm-rg350-d613fae5927ae6a2a6e2fe73706d58ac22834f78.tar.gz
scummvm-rg350-d613fae5927ae6a2a6e2fe73706d58ac22834f78.tar.bz2
scummvm-rg350-d613fae5927ae6a2a6e2fe73706d58ac22834f78.zip
DIRECTOR: Do not allow 0 frame rates
-rw-r--r--engines/director/score.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/director/score.cpp b/engines/director/score.cpp
index 37f2dfdded..17d6b8d11c 100644
--- a/engines/director/score.cpp
+++ b/engines/director/score.cpp
@@ -529,6 +529,9 @@ void Score::loadConfig(Common::SeekableSubReadStreamEndian &stream) {
_castArrayEnd = stream.readUint16();
_currentFrameRate = stream.readByte();
+ if (_currentFrameRate == 0)
+ _currentFrameRate = 20;
+
byte lightswitch = stream.readByte();
uint16 unk1 = stream.readUint16();
uint16 commentFont = stream.readUint16();