summaryrefslogtreecommitdiff
path: root/src/gui/windows/equipmentwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/equipmentwindow.cpp')
-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);