diff options
| author | Peter Kohaut | 2019-10-13 14:08:49 +0200 |
|---|---|---|
| committer | Peter Kohaut | 2019-10-13 14:09:47 +0200 |
| commit | cd7e44f9f92c3aee7b99ecf44e8dbfbb252904d0 (patch) | |
| tree | 2fb470e0166eaf4f125778b1675b4a49c20232e4 /engines/bladerunner/mouse.cpp | |
| parent | 2b0bce60908ec7fb2d1e2c950d4a967bc16e158a (diff) | |
| download | scummvm-rg350-cd7e44f9f92c3aee7b99ecf44e8dbfbb252904d0.tar.gz scummvm-rg350-cd7e44f9f92c3aee7b99ecf44e8dbfbb252904d0.tar.bz2 scummvm-rg350-cd7e44f9f92c3aee7b99ecf44e8dbfbb252904d0.zip | |
BLADERUNNER: Group shapes loading
Diffstat (limited to 'engines/bladerunner/mouse.cpp')
| -rw-r--r-- | engines/bladerunner/mouse.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/engines/bladerunner/mouse.cpp b/engines/bladerunner/mouse.cpp index 3d82fa00e6..94ea88c73b 100644 --- a/engines/bladerunner/mouse.cpp +++ b/engines/bladerunner/mouse.cpp @@ -257,13 +257,7 @@ void Mouse::draw(Graphics::Surface &surface, int x, int y) { _x = CLIP(x, 0, surface.w - 1); _y = CLIP(y, 0, surface.h - 1); - if (_cursor < 0 || (uint)_cursor >= _vm->_shapes.size()) { - return; - } - - Shape *cursorShape = _vm->_shapes[_frame]; - - cursorShape->draw(surface, _x - _hotspotX, _y - _hotspotY); + _vm->_shapes->get(_frame)->draw(surface, _x - _hotspotX, _y - _hotspotY); updateCursorFrame(); } |
