Author: cazfi
Date: Mon Jan 26 04:26:34 2015
New Revision: 27842

URL: http://svn.gna.org/viewcvs/freeciv?rev=27842&view=rev
Log:
Fixed saving of treaty clauses

See bug #23211

Modified:
    branches/S2_6/server/savegame2.c

Modified: branches/S2_6/server/savegame2.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/server/savegame2.c?rev=27842&r1=27841&r2=27842&view=diff
==============================================================================
--- branches/S2_6/server/savegame2.c    (original)
+++ branches/S2_6/server/savegame2.c    Mon Jan 26 04:26:34 2015
@@ -6542,9 +6542,9 @@
 
       fc_snprintf(cpath, sizeof(cpath), "%s.clause%d", tpath, cidx++);
 
-      secfile_insert_str(saving->file, clause_type_name(pclaus->type), 
"%s.type", tpath);
-      secfile_insert_str(saving->file, player_name(pclaus->from), "%s.from", 
tpath);
-      secfile_insert_int(saving->file, pclaus->value, "%s.value", tpath);
+      secfile_insert_str(saving->file, clause_type_name(pclaus->type), 
"%s.type", cpath);
+      secfile_insert_str(saving->file, player_name(pclaus->from), "%s.from", 
cpath);
+      secfile_insert_int(saving->file, pclaus->value, "%s.value", cpath);
     } clause_list_iterate_end;
   } treaty_list_iterate_end;
 }


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

Reply via email to