diff options
author | Paul Gilbert | 2017-11-17 20:52:18 -0500 |
---|---|---|
committer | Paul Gilbert | 2017-11-17 20:52:18 -0500 |
commit | 7361da9fdcad566a46d24e2b32711173039482d5 (patch) | |
tree | 859d8e541429c8d2024c8e6cbbb250e759d29a94 /engines/xeen/map.cpp | |
parent | ef8cf2a543ad04e971c7b09290f2d46ca0a3a4eb (diff) | |
download | scummvm-rg350-7361da9fdcad566a46d24e2b32711173039482d5.tar.gz scummvm-rg350-7361da9fdcad566a46d24e2b32711173039482d5.tar.bz2 scummvm-rg350-7361da9fdcad566a46d24e2b32711173039482d5.zip |
XEEN: Fix Coverity identified problems
Diffstat (limited to 'engines/xeen/map.cpp')
-rw-r--r-- | engines/xeen/map.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/xeen/map.cpp b/engines/xeen/map.cpp index b9b674cbdd..028ca4b6c4 100644 --- a/engines/xeen/map.cpp +++ b/engines/xeen/map.cpp @@ -1494,7 +1494,7 @@ int Map::getCell(int idx) { ++_mazeDataIndex; } - assert(ABS(pt.x) < 16 && ABS(pt.y) < 16); + assert(pt.x >= 0 && pt.x < 16 && pt.y >= 0 && pt.y < 16); int wallData = _mazeData[_mazeDataIndex]._wallData[pt.y][pt.x]._data; if (_isOutdoors) { if (mapId) { |