<URL: http://bugs.freeciv.org/Ticket/Display.html?id=38323 >
On 3/17/07, Marko Lindqvist <[EMAIL PROTECTED]> wrote:
> It also seems to me that this crash might happen if initial root_req
> is simply processed later than than tech depending on it.
This patch simply removes assert().
- ML
diff -Nurd -X.diff_ignore freeciv/server/techtools.c freeciv/server/techtools.c
--- freeciv/server/techtools.c 2007-03-05 19:13:46.000000000 +0200
+++ freeciv/server/techtools.c 2007-03-17 19:21:16.000000000 +0200
@@ -275,7 +275,9 @@
assert((tech_exists(tech_found)
&& get_invention(plr, tech_found) != TECH_KNOWN)
|| tech_found == A_FUTURE);
- assert(tech_is_available(plr, tech_found) || tech_found == A_FUTURE);
+ /* It is possible that !tech_is_available() simply because we are only
+ * setting up initial techs and root_req is one of them.
+ * assert(tech_is_available(plr, tech_found) || tech_found == A_FUTURE); */
/* got_tech allows us to change research without applying techpenalty
* (without loosing bulbs) */
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev