Prevent farm-plot-select from selecting crops when no crops are listed

Fixes #396
develop
lethosor 2014-11-18 19:54:23 -05:00
parent d83c32a0c5
commit 4922c36ada
1 changed files with 1 additions and 1 deletions

@ -55,7 +55,7 @@ struct farm_select_hook : df::viewscreen_dwarfmodest {
df::building_farmplotst* farm_plot = getFarmPlot();
if (farm_plot)
{
if (input->count(interface_key::SELECT_ALL))
if (input->count(interface_key::SELECT_ALL) && ui->selected_farm_crops.size() > 0)
{
int32_t crop_id = getSelectedCropId();
for (int season = 0; season < 4; season++)