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.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gui/windows/equipmentwindow.cpp b/src/gui/windows/equipmentwindow.cpp
index ef060ec83..784a7d86c 100644
--- a/src/gui/windows/equipmentwindow.cpp
+++ b/src/gui/windows/equipmentwindow.cpp
@@ -712,11 +712,8 @@ void EquipmentWindow::loadSlot(const XmlNodePtr slotNode,
const int imageIndex = XML::getProperty(slotNode, "image", -1);
Image *image = nullptr;
- if (imageset && imageIndex >= 0 && imageIndex
- < static_cast<signed>(imageset->size()))
- {
+ if (imageIndex >= 0 && imageIndex < static_cast<signed>(imageset->size()))
image = imageset->get(imageIndex);
- }
std::vector<EquipmentBox*> &boxes = mPages[page]->boxes;
if (boxes[slot])