Index: common/tech.c =================================================================== RCS file: /home/freeciv/CVS/freeciv/common/tech.c,v retrieving revision 1.99 diff -u -r1.99 tech.c --- common/tech.c 20 Jul 2005 07:19:20 -0000 1.99 +++ common/tech.c 30 Aug 2005 05:44:28 -0000 @@ -588,10 +588,6 @@ **************************************************************************/ const char *get_tech_name(const struct player *pplayer, Tech_type_id tech) { - static struct string_vector future; - int i; - struct player_research *research = get_player_research(pplayer); - /* We don't return a static buffer because that would break anything that * needed to work with more than one name at a time. */ switch (tech) { @@ -602,6 +598,11 @@ /* TRANS: "None" tech */ return _("None"); case A_FUTURE: + { + static struct string_vector future; + int i; + struct player_research *research = get_player_research(pplayer); + /* pplayer->future_tech == 0 means "Future Tech. 1". */ for (i = future.size; i <= research->future_tech; i++) { char *ptr = NULL; @@ -616,6 +617,7 @@ future.p[research->future_tech] = mystrdup(buffer); } return future.p[research->future_tech]; + } default: /* Includes A_NONE */ if (!tech_exists(tech)) {