[Freeciv-Dev] (PR#9780) server crash from unset tech
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=9780 >
Patch.
- Per
Index: server/unittools.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/unittools.c,v
retrieving revision 1.304
diff -u -r1.304 unittools.c
--- server/unittools.c 22 Sep 2004 07:17:57 -0000 1.304
+++ server/unittools.c 23 Sep 2004 19:38:07 -0000
@@ -2288,7 +2288,9 @@
new_tech = pplayer->research.researching;
pplayer->research.bulbs_researched = res_ed;
- pplayer->research.researching = res_ing;
+ if (res_ing != A_UNSET) {
+ pplayer->research.researching = res_ing;
+ }
tech_name = get_tech_name(pplayer, new_tech);
notify_player_ex(pplayer, punit->x, punit->y, E_HUT_TECH,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] (PR#9780) server crash from unset tech,
Per I. Mathisen <=
|
|