Skip to content

Commit

Permalink
Fix if unittype's imprv_req is SmallWonder, it wrongly prohibits maki…
Browse files Browse the repository at this point in the history
…ng that unittype if the player owns the SmallWonder
  • Loading branch information
Lexxie9952 committed Aug 21, 2020
1 parent 1917280 commit 99c31b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion freeciv/freeciv/common/unittype.c
Expand Up @@ -1465,7 +1465,7 @@ bool can_player_build_unit_direct(const struct player *p,
* else. */
return FALSE;
}
} else {
} else if (!is_small_wonder(punittype->need_improvement)) {
if (!can_player_build_improvement_direct(p,
punittype->need_improvement)) {
return FALSE;
Expand Down

0 comments on commit 99c31b0

Please sign in to comment.