Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2005:
[Freeciv-Dev] (PR#14546) S1_14 Civserver crash in update_dumb_city()
Home

[Freeciv-Dev] (PR#14546) S1_14 Civserver crash in update_dumb_city()

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: per@xxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#14546) S1_14 Civserver crash in update_dumb_city()
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 5 Dec 2005 14:55:25 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=14546 >

This patch fixes it.

-jason

Index: server/citytools.c
===================================================================
--- server/citytools.c  (revision 11306)
+++ server/citytools.c  (working copy)
@@ -1541,7 +1541,7 @@
   if (pcity)
     powner = city_owner(pcity);
 
-  if (powner == pviewer) {
+  if (powner && powner == pviewer) {
     /* send info to owner */
     /* This case implies powner non-NULL which means pcity non-NULL */
     /* nocity_send is used to inhibit sending cities to the owner between

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#14546) S1_14 Civserver crash in update_dumb_city(), Jason Short <=