From bed897719cfde9107632fd73cac88da29db40a68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torbj=C3=B6rn=20Andersson?= Date: Mon, 28 Feb 2005 13:28:02 +0000 Subject: [PATCH] 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 --- sword2/mouse.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sword2/mouse.cpp b/sword2/mouse.cpp index c2484e89cb7..0bfe918f2e9 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