diff options
author | Strangerke | 2015-12-22 21:19:29 +0100 |
---|---|---|
committer | Willem Jan Palenstijn | 2015-12-23 21:35:35 +0100 |
commit | 50a6cf12ef88503e2f5efd9e91dbc2768abb0f95 (patch) | |
tree | 925a59ecd484542906ce9516df370fd9b79757ae | |
parent | 040fa45cf10bbd7196e0219dea4a302ed7064ed7 (diff) | |
download | scummvm-rg350-50a6cf12ef88503e2f5efd9e91dbc2768abb0f95.tar.gz scummvm-rg350-50a6cf12ef88503e2f5efd9e91dbc2768abb0f95.tar.bz2 scummvm-rg350-50a6cf12ef88503e2f5efd9e91dbc2768abb0f95.zip |
LAB: Add a safeguard on numChunks
-rw-r--r-- | engines/lab/anim.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/lab/anim.cpp b/engines/lab/anim.cpp index dcf57184ce..d893c9c647 100644 --- a/engines/lab/anim.cpp +++ b/engines/lab/anim.cpp @@ -321,6 +321,8 @@ void Anim::readDiff(Common::File *diffFile, bool playOnce, bool onlyDiffData) { if ((uint32)(_numChunks * 0x10000) < (uint32)(((int32)_diffWidth) * _diffHeight)) _numChunks++; + + assert (_numChunks < 16); } else return; |