Fix crash in zone plugin from scrolling when assigning an owner to a cage

Fixes #534
develop
lethosor 2015-02-06 19:12:10 -05:00
parent 7823a14a8f
commit 00072dae1d
1 changed files with 4 additions and 2 deletions

@ -4064,6 +4064,8 @@ struct zone_hook : public df::viewscreen_dwarfmodest
ui_building_in_assign && *ui_building_in_assign &&
ui_building_assign_type && ui_building_assign_units &&
ui_building_assign_type->size() == ui_building_assign_units->size() &&
ui_building_assign_type->size() == ui_building_assign_items->size() &&
ui_building_assign_type->size() == ui_building_assign_is_marked->size() &&
ui_building_item_cursor &&
world->selected_building && isCage(world->selected_building) )
)