From 114b40d85c2d6c994d428688e604304a49395143 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 16 Oct 2005 21:08:22 +0000 Subject: [PATCH] =?UTF-8?q?http://eressea.upb.de/mantis/view.php=3Fid=3D71?= =?UTF-8?q?0=20Zauber=20"S=C3=BCsse=20Tr=C3=A4ume"=20vermehrt=20Einheit=20?= =?UTF-8?q?nicht?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit bugfix static variables --- src/common/gamecode/randenc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/common/gamecode/randenc.c b/src/common/gamecode/randenc.c index 1f824d400..bcabe0497 100644 --- a/src/common/gamecode/randenc.c +++ b/src/common/gamecode/randenc.c @@ -1123,11 +1123,13 @@ orc_growth(void) unit *u; for (u = r->units; u; u = u->next) { static boolean init = false; - static curse *c = 0; + static const curse_type *ct_orcish = 0; + curse *c = 0; if (!init) { init = true; - c = get_curse(u->attribs, ct_find("orcish")); + ct_orcish = ct_find("orcish"); } + if (ct_orcish) c = get_curse(u->attribs, ct_orcish); if (c && !has_skill(u, SK_MAGIC) && !has_skill(u, SK_ALCHEMY) && !fval(u, UFL_HERO)) { int n;