mirror of https://github.com/OpenTTD/OpenTTD
(svn r27438) -Fix (r27346) [FS#6387]: The build object hotkey no longer checked whether there were any objects defined.
parent
ad48714852
commit
fbd2786329
|
@ -526,7 +526,10 @@ static WindowDesc _build_object_desc(
|
||||||
*/
|
*/
|
||||||
void ShowBuildObjectPicker()
|
void ShowBuildObjectPicker()
|
||||||
{
|
{
|
||||||
AllocateWindowDescFront<BuildObjectWindow>(&_build_object_desc, 0);
|
/* Don't show the place object button when there are no objects to place. */
|
||||||
|
if (ObjectClass::GetUIClassCount() > 0) {
|
||||||
|
AllocateWindowDescFront<BuildObjectWindow>(&_build_object_desc, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Reset all data of the object GUI. */
|
/** Reset all data of the object GUI. */
|
||||||
|
|
Loading…
Reference in New Issue