From a1fb631fe3fc16b534dab2e9074bf8a56d16bdc3 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Mon, 19 Jan 2015 22:38:20 -0500 Subject: XEEN: Fix resetting sprites on ground tiles when drawing --- engines/xeen/interface_map.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/xeen') 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 || -- cgit v1.2.3