[Freeciv-Dev] Re: (PR#14768) capitalization unavailable
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=14768 >
On 12/7/05, Jason Short <jdorje@xxxxxxxxxxxxxxxxxxxxx> wrote:
>
> Should be a 3-line fix to is_building_replaced...
Here is a patch.
--
Vasco Alexandre da Silva Costa
Index: common/effects.c
===================================================================
--- common/effects.c (revision 11343)
+++ common/effects.c (working copy)
@@ -692,6 +690,10 @@
return FALSE;
}
+ if (effect_list_size(plist) == 0) {
+ return FALSE;
+ }
+
effect_list_iterate(plist, peffect) {
/* We use TARGET_BUILDING as the lowest common denominator. Note that
* the building is its own target - but whether this is actually
|
|