diff options
-rw-r--r-- | engines/hdb/draw-manager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/hdb/draw-manager.cpp b/engines/hdb/draw-manager.cpp index b59b86f5df..afc6b43dcc 100644 --- a/engines/hdb/draw-manager.cpp +++ b/engines/hdb/draw-manager.cpp @@ -154,6 +154,9 @@ Tile *DrawMan::getTile(int index) { } int DrawMan::getTileIndex(const char *name) { + if (!name) { + return -1; + } for (int i = 0; i < _numTiles; i++) { if (Common::matchString(_tLookupArray[i].filename, name)) { return i; |