mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 18:40:29 +00:00
(svn r24176) -Fix (r21772): The object GUI did not draw objects when all objects of a class are disabled.
This commit is contained in:
parent
6baef585cf
commit
5e59c5cd7f
@ -193,8 +193,6 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
case WID_BO_SELECT_IMAGE: {
|
case WID_BO_SELECT_IMAGE: {
|
||||||
if (_selected_object_index < 0) break;
|
|
||||||
|
|
||||||
ObjectClass *objclass = ObjectClass::Get(_selected_object_class);
|
ObjectClass *objclass = ObjectClass::Get(_selected_object_class);
|
||||||
int obj_index = objclass->GetIndexFromUI(GB(widget, 16, 16));
|
int obj_index = objclass->GetIndexFromUI(GB(widget, 16, 16));
|
||||||
if (obj_index < 0) break;
|
if (obj_index < 0) break;
|
||||||
|
Loading…
Reference in New Issue
Block a user