diff options
author | Nipun Garg | 2019-06-09 00:24:57 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:46 +0200 |
commit | 57550c1997cb0dbcfbe62504579c641ca4f0b177 (patch) | |
tree | 2819f27ddb5fe7d8209bf0f278367df0a0ddc565 /engines | |
parent | 0410e48cafa417d4e9831c733f2c1f77741fcd9e (diff) | |
download | scummvm-rg350-57550c1997cb0dbcfbe62504579c641ca4f0b177.tar.gz scummvm-rg350-57550c1997cb0dbcfbe62504579c641ca4f0b177.tar.bz2 scummvm-rg350-57550c1997cb0dbcfbe62504579c641ca4f0b177.zip |
HDB: Add assert to check _numTiles
Diffstat (limited to 'engines')
-rw-r--r-- | engines/hdb/draw-manager.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/hdb/draw-manager.cpp b/engines/hdb/draw-manager.cpp index 4845be664a..df04f095d8 100644 --- a/engines/hdb/draw-manager.cpp +++ b/engines/hdb/draw-manager.cpp @@ -46,6 +46,8 @@ bool DrawMan::init() { _tLookupArray = new TileLookup[_numTiles]; Common::Array<const char *> tileData = *g_hdb->_fileMan->findFiles("t32_", TYPE_TILE32); + assert((uint)_numTiles == tileData.size()); + int index = 0, skyIndex = 0; for (; index < _numTiles; index++) { _tLookupArray[index].filename = tileData[index]; |