[Freeciv-Dev] (PR#13056) Fix requirements bug
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: |
[Freeciv-Dev] (PR#13056) Fix requirements bug |
From: |
"Per I. Mathisen" <per@xxxxxxxxxxx> |
Date: |
Sat, 14 May 2005 06:14:08 -0700 |
Reply-to: |
bugs@xxxxxxxxxxx |
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=13056 >
An iterator starts as a vector and ends as a list...
- Per
Index: common/city.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/common/city.c,v
retrieving revision 1.346
diff -U10 -p -r1.346 city.c
--- common/city.c 11 May 2005 14:11:20 -0000 1.346
+++ common/city.c 14 May 2005 13:13:07 -0000
@@ -438,21 +438,21 @@ bool can_eventually_build_improvement(co
}
/* Check for requirements that aren't met and that are unchanging (so
* they can never be met). */
requirement_vector_iterate(&building->reqs, preq) {
if (is_req_unchanging(preq)
&& !is_req_active(city_owner(pcity), pcity, NULL,
pcity->tile, NULL, NULL, NULL, preq)) {
return FALSE;
}
- } requirement_list_iterate_end;
+ } requirement_vector_iterate_end;
return TRUE;
}
/**************************************************************************
Return whether given city can build given unit, ignoring whether unit
is obsolete.
**************************************************************************/
bool can_build_unit_direct(const struct city *pcity, Unit_type_id id)
{
Impr_type_id impr_req;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] (PR#13056) Fix requirements bug,
Per I. Mathisen <=
|
|