Author: cazfi
Date: Wed Dec  7 07:24:17 2016
New Revision: 34692

URL: http://svn.gna.org/viewcvs/freeciv?rev=34692&view=rev
Log:
Rulesave saves trade.type and trade.bonus correctly.

See bug #25362

Modified:
    trunk/tools/ruleutil/rulesave.c

Modified: trunk/tools/ruleutil/rulesave.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/tools/ruleutil/rulesave.c?rev=34692&r1=34691&r2=34692&view=diff
==============================================================================
--- trunk/tools/ruleutil/rulesave.c     (original)
+++ trunk/tools/ruleutil/rulesave.c     Wed Dec  7 07:24:17 2016
@@ -1314,11 +1314,13 @@
                   "trade.settings%d", set_count++);
 
       secfile_insert_str(sfile, trade_route_type_name(trt),
-                         "%s.name", path);
+                         "%s.type", path);
       secfile_insert_int(sfile, set->trade_pct,
                          "%s.pct", path);
       secfile_insert_str(sfile, cancelling,
                          "%s.cancelling", path);
+      secfile_insert_str(sfile, traderoute_bonus_type_name(set->bonus_type),
+                         "%s.bonus", path);
     }
   }
 


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

Reply via email to