Skip to content

Commit

Permalink
Fix being able to build shipyards when there was no fish on the map
Browse files Browse the repository at this point in the history
  • Loading branch information
crudelios committed Aug 8, 2023
1 parent 9210eb2 commit 428752d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/building/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ static int is_building_type_allowed(building_type type);
static int can_get_required_resource(building_type type)
{
switch (type) {
case BUILDING_SHIPYARD:
return empire_can_produce_resource_naturally(RESOURCE_FISH);
case BUILDING_TAVERN:
return empire_can_produce_resource_potentially(RESOURCE_WINE) ||
empire_can_import_resource_potentially(RESOURCE_WINE);
Expand Down

0 comments on commit 428752d

Please sign in to comment.