From 7f33205d026fafc1c01445572b6c3de6054a0663 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Thu, 6 Oct 2022 01:16:49 +0300 Subject: [PATCH 32/32] Drop extraneous is_barbarian() call from can_player_build_unit_direct() See osdn #45631 Signed-off-by: Marko Lindqvist --- common/unittype.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/common/unittype.c b/common/unittype.c index cad966221d..47ba3e64a3 100644 --- a/common/unittype.c +++ b/common/unittype.c @@ -2057,8 +2057,6 @@ bool can_player_build_unit_direct(const struct player *p, return FALSE; } - barbarian = is_barbarian(p); - requirement_vector_iterate(&punittype->build_reqs, preq) { if (preq->source.kind == VUT_IMPROVEMENT && preq->range == REQ_RANGE_CITY && preq->present) { -- 2.35.1