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
This commit is contained in:
Torbjörn Andersson 2005-02-28 13:28:02 +00:00
parent 36705d4344
commit bed897719c

View File

@ -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