diff options
author | Paul Gilbert | 2015-01-19 22:38:20 -0500 |
---|---|---|
committer | Paul Gilbert | 2015-01-19 22:38:20 -0500 |
commit | a1fb631fe3fc16b534dab2e9074bf8a56d16bdc3 (patch) | |
tree | d9e98591db61d1399fdb84988c7163ce7857fbb6 | |
parent | dc8592a9128ed389ba9d466bac96bc15609d3eef (diff) | |
download | scummvm-rg350-a1fb631fe3fc16b534dab2e9074bf8a56d16bdc3.tar.gz scummvm-rg350-a1fb631fe3fc16b534dab2e9074bf8a56d16bdc3.tar.bz2 scummvm-rg350-a1fb631fe3fc16b534dab2e9074bf8a56d16bdc3.zip |
XEEN: Fix resetting sprites on ground tiles when drawing
-rw-r--r-- | engines/xeen/interface_map.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/xeen/interface_map.cpp b/engines/xeen/interface_map.cpp index 1f927112b8..5b1d4e995e 100644 --- a/engines/xeen/interface_map.cpp +++ b/engines/xeen/interface_map.cpp @@ -1112,8 +1112,8 @@ void InterfaceMap::drawIndoors() { map.getCell(DRAW_NUMBERS[cellIndex]); DrawStruct &drawStruct = _indoorList._groundTiles[cellIndex]; - if (!map._surfaceSprites[map._currentSurfaceId].empty()) - drawStruct._sprites = &map._surfaceSprites[map._currentSurfaceId]; + SpriteResource &sprites = map._surfaceSprites[map._currentSurfaceId]; + drawStruct._sprites = sprites.empty() ? (SpriteResource *)nullptr : &sprites; surfaceId = map.mazeData()._surfaceTypes[map._currentSurfaceId]; if (surfaceId == SURFTYPE_WATER || surfaceId == SURFTYPE_LAVA || |