Author: pepeto
Date: Mon Jan 12 14:41:57 2015
New Revision: 27639

URL: http://svn.gna.org/viewcvs/freeciv?rev=27639&view=rev
Log:
Fix typo in vision_site_update_from_city() assertions making assignments
instead of comparisons.

See gna bug #23167

Modified:
    branches/S2_6/common/vision.c

Modified: branches/S2_6/common/vision.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/common/vision.c?rev=27639&r1=27638&r2=27639&view=diff
==============================================================================
--- branches/S2_6/common/vision.c       (original)
+++ branches/S2_6/common/vision.c       Mon Jan 12 14:41:57 2015
@@ -109,8 +109,8 @@
                                   const struct city *pcity)
 {
   /* should be same identity and location */
-  fc_assert_ret(psite->identity = pcity->id);
-  fc_assert_ret(psite->location = pcity->tile);
+  fc_assert_ret(psite->identity == pcity->id);
+  fc_assert_ret(psite->location == pcity->tile);
 
   psite->owner = city_owner(pcity);
 


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to