Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2005:
[Freeciv-Dev] Re: (PR#14768) capitalization unavailable
Home

[Freeciv-Dev] Re: (PR#14768) capitalization unavailable

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: chrisk@xxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#14768) capitalization unavailable
From: "Vasco Alexandre da Silva Costa" <vasco.costa@xxxxxxxxx>
Date: Sun, 11 Dec 2005 06:29:58 -0800
Reply-to: bugs@xxxxxxxxxxx

<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

[Prev in Thread] Current Thread [Next in Thread]