(svn r27438) -Fix (r27346) [FS#6387]: The build object hotkey no longer checked whether there were any objects defined.

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
frosch 9 years ago
parent ad48714852
commit fbd2786329

@ -526,7 +526,10 @@ static WindowDesc _build_object_desc(
*/
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. */

Loading…
Cancel
Save