diff options
author | Torbjörn Andersson | 2005-02-28 13:28:02 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2005-02-28 13:28:02 +0000 |
commit | bed897719cfde9107632fd73cac88da29db40a68 (patch) | |
tree | c536f6cb2527369838e090f99e2cde819cd53a96 | |
parent | 36705d43444e5e5ec668b8b895278ca9c38c0240 (diff) | |
download | scummvm-rg350-bed897719cfde9107632fd73cac88da29db40a68.tar.gz scummvm-rg350-bed897719cfde9107632fd73cac88da29db40a68.tar.bz2 scummvm-rg350-bed897719cfde9107632fd73cac88da29db40a68.zip |
Index the "mouse list" from 0 instead of 1. I have no idea why it wasn't
this way to begin with.
svn-id: r16959
-rw-r--r-- | sword2/mouse.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sword2/mouse.cpp b/sword2/mouse.cpp index c2484e89cb..0bfe918f2e 100644 --- a/sword2/mouse.cpp +++ b/sword2/mouse.cpp @@ -122,7 +122,7 @@ void Mouse::setPos(int x, int y) { */ void Mouse::resetMouseList() { - _curMouse = 1; + _curMouse = 0; } void Mouse::registerMouse(ObjectMouse *ob_mouse, BuildUnit *build_unit) { @@ -968,7 +968,7 @@ uint32 Mouse::checkMouseList() { // Number of priorities subject to implementation needs for (int priority = 0; priority < 10; priority++) { - for (uint i = 1; i < _curMouse; i++) { + for (uint i = 0; i < _curMouse; i++) { // If the mouse pointer is over this // mouse-detection-box |