Author: cazfi
Date: Mon Jan 30 11:11:06 2017
New Revision: 34912

URL: http://svn.gna.org/viewcvs/freeciv?rev=34912&view=rev
Log:
Always lookup unit orders related keys when loading a savegame.

Reported by Christian Knoke <chrisk>

See bug #25405

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=34912&r1=34911&r2=34912&view=diff
==============================================================================
--- branches/S2_6/server/savegame2.c    (original)
+++ branches/S2_6/server/savegame2.c    Mon Jan 30 11:11:06 2017
@@ -6105,6 +6105,14 @@
     } else {
       punit->has_orders = FALSE;
       punit->orders.list = NULL;
+
+      (void) secfile_entry_lookup(loading->file, "%s.orders_index", unitstr);
+      (void) secfile_entry_lookup(loading->file, "%s.orders_repeat", unitstr);
+      (void) secfile_entry_lookup(loading->file, "%s.orders_vigilant", 
unitstr);
+      (void) secfile_entry_lookup(loading->file, "%s.orders_list", unitstr);
+      (void) secfile_entry_lookup(loading->file, "%s.dir_list", unitstr);
+      (void) secfile_entry_lookup(loading->file, "%s.activity_list", unitstr);
+      (void) secfile_entry_lookup(loading->file, "%s.tgt_list", unitstr);
     }
   }
 


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

Reply via email to