summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-03-03 21:17:48 +0300
committerAndrei Karas <akaras@inbox.ru>2014-03-03 21:17:48 +0300
commit50ccaf404cdbe5b635f003ff209996f9062183d5 (patch)
treec6715307523e83429fa2851ceb16e697c24bb6b8 /src
parent37241d3f8552e1bdbd4b966fb95d7e9df1546994 (diff)
downloadmv-50ccaf404cdbe5b635f003ff209996f9062183d5.tar.gz
mv-50ccaf404cdbe5b635f003ff209996f9062183d5.tar.bz2
mv-50ccaf404cdbe5b635f003ff209996f9062183d5.tar.xz
mv-50ccaf404cdbe5b635f003ff209996f9062183d5.zip
fix selection image in equipmentwindow.
Diffstat (limited to 'src')
-rw-r--r--src/gui/windows/equipmentwindow.cpp4
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);