<URL: http://bugs.freeciv.org/Ticket/Display.html?id=40363 >

 Attempt to give error message about broken tech requirement leads to
crash in S2_2 and TRUNK. Fix attached.


 - ML

diff -Nurd -X.diff_ignore freeciv/server/ruleset.c freeciv/server/ruleset.c
--- freeciv/server/ruleset.c    2008-07-06 20:53:10.000000000 +0300
+++ freeciv/server/ruleset.c    2008-07-07 20:25:38.000000000 +0300
@@ -861,17 +861,15 @@
        * in build_required_techs_helper. */
       if (!valid_advance(a->require[AR_ONE])) {
         ruleset_error(LOG_FATAL,
-                      "\"%s\" tech \"%s\": req1 leads to removed tech \"%s\".",
+                      "\"%s\" tech \"%s\": req1 leads to removed tech.",
                       filename,
-                      advance_rule_name(a),
-                      advance_rule_name(a->require[AR_ONE]));
+                      advance_rule_name(a));
       } 
       if (!valid_advance(a->require[AR_TWO])) {
         ruleset_error(LOG_FATAL,
-                      "\"%s\" tech \"%s\": req2 leads to removed tech \"%s\".",
+                      "\"%s\" tech \"%s\": req2 leads to removed tech.",
                       filename,
-                      advance_rule_name(a),
-                      advance_rule_name(a->require[AR_TWO]));
+                      advance_rule_name(a));
       }
     }
   } advance_iterate_end;
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to