diff options
author | Nipun Garg | 2019-06-27 23:26:15 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:02 +0200 |
commit | dfa9a6bb3b1a8518f79f4d6d445b9d96959aeb79 (patch) | |
tree | 776c0cbfb3dac532eb4c2baa6155073628a9626f | |
parent | 0daae853408a8a1e7a35bef52dee88a79fac4541 (diff) | |
download | scummvm-rg350-dfa9a6bb3b1a8518f79f4d6d445b9d96959aeb79.tar.gz scummvm-rg350-dfa9a6bb3b1a8518f79f4d6d445b9d96959aeb79.tar.bz2 scummvm-rg350-dfa9a6bb3b1a8518f79f4d6d445b9d96959aeb79.zip |
HDB: Add FIXME for out-of-bounds access
-rw-r--r-- | engines/hdb/ai-lists.cpp | 3 | ||||
-rw-r--r-- | engines/hdb/hdb.cpp | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/engines/hdb/ai-lists.cpp b/engines/hdb/ai-lists.cpp index a8598863a2..a8c69f12d9 100644 --- a/engines/hdb/ai-lists.cpp +++ b/engines/hdb/ai-lists.cpp @@ -90,12 +90,13 @@ void AI::animateTargets() { int layer; g_hdb->_map->getMapXY(&mx, &my); + debug("animateTargets: Size of _animTargets: %d", _animTargets->size()); for (Common::Array<AnimTarget *>::iterator it = _animTargets->begin(); it != _animTargets->end(); it++) { - at = *it; // Draw Non-Map stuff every frame if (!at->inMap) + // FIXME: Out of bounds reference to gfxList at->gfxList[at->start]->drawMasked(at->x - mx, at->y - my); // Frame Timer diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp index 78774e1082..7fb4551c03 100644 --- a/engines/hdb/hdb.cpp +++ b/engines/hdb/hdb.cpp @@ -300,7 +300,7 @@ Common::Error HDBGame::run() { _drawMan->drawSky(); - warning("STUB: HDBGame::run: Add check for pause flag"); + debug(9, "STUB: HDBGame::run: Add check for pause flag"); _ai->moveEnts(); _ai->processCallbackList(); |