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

pull/155/head
frosch 9 years ago
parent 19e0cb8c50
commit 515fb701c2

@ -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