Author: cazfi
Date: Mon Jan  9 10:40:48 2017
New Revision: 34802

URL: http://svn.gna.org/viewcvs/freeciv?rev=34802&view=rev
Log:
Fixed check that techonology vector has been loaded correctly from the savegame.

See bug #25416

Modified:
    branches/S3_0/server/savegame2.c
    branches/S3_0/server/savegame3.c

Modified: branches/S3_0/server/savegame2.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S3_0/server/savegame2.c?rev=34802&r1=34801&r2=34802&view=diff
==============================================================================
--- branches/S3_0/server/savegame2.c    (original)
+++ branches/S3_0/server/savegame2.c    Mon Jan  9 10:40:48 2017
@@ -1143,7 +1143,7 @@
     loading->technology.order
       = secfile_lookup_str_vec(loading->file, &loading->technology.size,
                                "savefile.technology_vector");
-    sg_failure_ret(loading->improvement.size != 0,
+    sg_failure_ret(loading->technology.size != 0,
                    "Failed to load technology order: %s",
                    secfile_error());
   }

Modified: branches/S3_0/server/savegame3.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S3_0/server/savegame3.c?rev=34802&r1=34801&r2=34802&view=diff
==============================================================================
--- branches/S3_0/server/savegame3.c    (original)
+++ branches/S3_0/server/savegame3.c    Mon Jan  9 10:40:48 2017
@@ -1336,7 +1336,7 @@
     loading->technology.order
       = secfile_lookup_str_vec(loading->file, &loading->technology.size,
                                "savefile.technology_vector");
-    sg_failure_ret(loading->improvement.size != 0,
+    sg_failure_ret(loading->technology.size != 0,
                    "Failed to load technology order: %s",
                    secfile_error());
   }


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

Reply via email to