summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/object_gui.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/object_gui.cpp b/src/object_gui.cpp
index 3acb3d125..53b241dc8 100644
--- a/src/object_gui.cpp
+++ b/src/object_gui.cpp
@@ -193,8 +193,6 @@ public:
}
case WID_BO_SELECT_IMAGE: {
- if (_selected_object_index < 0) break;
-
ObjectClass *objclass = ObjectClass::Get(_selected_object_class);
int obj_index = objclass->GetIndexFromUI(GB(widget, 16, 16));
if (obj_index < 0) break;