1
0
Fork 0

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

release/1.6
frosch 2015-11-07 15:07:18 +00:00
parent ad48714852
commit fbd2786329
1 changed files with 4 additions and 1 deletions

View File

@ -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. */