diff options
author | frosch <frosch@openttd.org> | 2012-04-24 17:27:50 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-04-24 17:27:50 +0000 |
commit | 5e59c5cd7f955bcfaf26d2ca456fe7b3e380d5c9 (patch) | |
tree | 381a8090c593bb583a89cc16901c4adcc69d790f | |
parent | 6baef585cfb031b04aaf6d253a8a229cd63f7a12 (diff) | |
download | openttd-5e59c5cd7f955bcfaf26d2ca456fe7b3e380d5c9.tar.xz |
(svn r24176) -Fix (r21772): The object GUI did not draw objects when all objects of a class are disabled.
-rw-r--r-- | src/object_gui.cpp | 2 |
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; |