From b1b03b18d35d59ad0d712c723a3d4f8c02dcfc18 Mon Sep 17 00:00:00 2001 From: jepael Date: Sun, 1 Sep 2019 21:58:55 +0300 Subject: XEEN: Fix compiler warning --- engines/xeen/sprites.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/engines/xeen/sprites.cpp b/engines/xeen/sprites.cpp index fdd1f322e4..d6d0cf5154 100644 --- a/engines/xeen/sprites.cpp +++ b/engines/xeen/sprites.cpp @@ -134,33 +134,33 @@ void SpriteResource::draw(XSurface &dest, int frame, const Common::Point &destPo r.clip(SCREEN_WIDTH, _clippedBottom); // Create drawer to handle the rendering - SpriteDrawer *draw; + SpriteDrawer *drawer; switch (flags & SPRFLAG_MODE_MASK) { case SPRFLAG_DRAWER1: - draw = new SpriteDrawer1(_data, _filesize, flags & 0x1F); + drawer = new SpriteDrawer1(_data, _filesize, flags & 0x1F); break; case SPRFLAG_DRAWER2: error("TODO: Sprite drawer mode 2"); case SPRFLAG_DRAWER3: - draw = new SpriteDrawer3(_data, _filesize, flags & 0x1F); + drawer = new SpriteDrawer3(_data, _filesize, flags & 0x1F); break; case SPRFLAG_DRAWER5: - draw = new SpriteDrawer5(_data, _filesize, flags & 0x1F); + drawer = new SpriteDrawer5(_data, _filesize, flags & 0x1F); break; case SPRFLAG_DRAWER6: - draw = new SpriteDrawer6(_data, _filesize, flags & 0x1F); + drawer = new SpriteDrawer6(_data, _filesize, flags & 0x1F); break; default: - draw = new SpriteDrawer(_data, _filesize); + drawer = new SpriteDrawer(_data, _filesize); break; } // Sprites can consist of separate background & foreground - draw->draw(dest, _index[frame]._offset1, destPos, r, flags, scale); + drawer->draw(dest, _index[frame]._offset1, destPos, r, flags, scale); if (_index[frame]._offset2) - draw->draw(dest, _index[frame]._offset2, destPos, r, flags, scale); + drawer->draw(dest, _index[frame]._offset2, destPos, r, flags, scale); - delete draw; + delete drawer; } void SpriteResource::draw(XSurface &dest, int frame) { -- cgit v1.2.3