diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-03-03 21:17:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-03-03 21:17:48 +0300 |
commit | 50ccaf404cdbe5b635f003ff209996f9062183d5 (patch) | |
tree | c6715307523e83429fa2851ceb16e697c24bb6b8 /src/gui/windows | |
parent | 37241d3f8552e1bdbd4b966fb95d7e9df1546994 (diff) | |
download | plus-50ccaf404cdbe5b635f003ff209996f9062183d5.tar.gz plus-50ccaf404cdbe5b635f003ff209996f9062183d5.tar.bz2 plus-50ccaf404cdbe5b635f003ff209996f9062183d5.tar.xz plus-50ccaf404cdbe5b635f003ff209996f9062183d5.zip |
fix selection image in equipmentwindow.
Diffstat (limited to 'src/gui/windows')
-rw-r--r-- | src/gui/windows/equipmentwindow.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/windows/equipmentwindow.cpp b/src/gui/windows/equipmentwindow.cpp index c793ba6ce..d4ea6720a 100644 --- a/src/gui/windows/equipmentwindow.cpp +++ b/src/gui/windows/equipmentwindow.cpp @@ -175,7 +175,10 @@ void EquipmentWindow::draw(Graphics *graphics) { const EquipmentBox *const box = *it; if (!box) + { + i ++; continue; + } if (i == mSelected) { graphics->calcTileCollection(mVertexes, @@ -188,6 +191,7 @@ void EquipmentWindow::draw(Graphics *graphics) mSlotBackground, box->x, box->y); } + i ++; } } graphics->drawTileCollection(mVertexes); |