Author: sveinung
Date: Tue Jan 12 11:15:12 2016
New Revision: 31453

URL: http://svn.gna.org/viewcvs/freeciv?rev=31453&view=rev
Log:
Don't crash on missing trade partner.

See patch #6814

Modified:
    trunk/common/city.c

Modified: trunk/common/city.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/city.c?rev=31453&r1=31452&r2=31453&view=diff
==============================================================================
--- trunk/common/city.c (original)
+++ trunk/common/city.c Tue Jan 12 11:15:12 2016
@@ -2780,7 +2780,7 @@
     struct city *tcity = game_city_by_number(proute->partner);
     bool can_trade;
 
-    fc_assert(tcity != NULL);
+    fc_assert_action(tcity != NULL, continue);
 
     can_trade = can_cities_trade(pcity, tcity);
 


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

Reply via email to