aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/interface_map.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/xeen/interface_map.cpp')
-rw-r--r--engines/xeen/interface_map.cpp4
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 ||