File diff r23022:731ae1300799 → r23023:7b8669afd1db
src/object_gui.cpp
Show inline comments
 
@@ -517,16 +517,13 @@ static WindowDesc _build_object_desc(
 
	WDP_AUTO, "build_object", 0, 0,
 
	WC_BUILD_OBJECT, WC_BUILD_TOOLBAR,
 
	WDF_CONSTRUCTION,
 
	_nested_build_object_widgets, lengthof(_nested_build_object_widgets)
 
);
 

	
 
/**
 
 * Show our object picker.
 
 * @param w The toolbar window we're associated with.
 
 */
 
/** Show our object picker.  */
 
void ShowBuildObjectPicker()
 
{
 
	/* Don't show the place object button when there are no objects to place. */
 
	if (ObjectClass::GetUIClassCount() > 0) {
 
		AllocateWindowDescFront<BuildObjectWindow>(&_build_object_desc, 0);
 
	}