diff options
Diffstat (limited to 'sword2/controls.cpp')
-rw-r--r-- | sword2/controls.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sword2/controls.cpp b/sword2/controls.cpp index f05083260e..a2c3c8e684 100644 --- a/sword2/controls.cpp +++ b/sword2/controls.cpp @@ -1255,6 +1255,7 @@ public: int textWidth; char tmp; int i; + int j; switch (result) { case kWheelUp: @@ -1274,7 +1275,7 @@ public: if (widget == _slotButton[i]) break; - for (int j = 0; j < 8; j++) { + for (j = 0; j < 8; j++) { if (j != i) { _slotButton[j]->setEditable(false); _slotButton[j]->setState(0); |