From c9129baf4591f76cb9d501552298f280b71c61ea Mon Sep 17 00:00:00 2001 From: Christian Schlittchen Date: Sat, 2 Mar 2002 12:33:03 +0000 Subject: [PATCH] =?UTF-8?q?-=20Fix=20Golems/Schattend=C3=A4monen=20ohne=20?= =?UTF-8?q?Talente?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/kernel/spell.c | 2 +- src/common/kernel/unit.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/common/kernel/spell.c b/src/common/kernel/spell.c index d4ee1b465..0fd283c6a 100644 --- a/src/common/kernel/spell.c +++ b/src/common/kernel/spell.c @@ -1558,7 +1558,7 @@ sp_create_irongolem(castorder *co) * Flag: * (SPELLLEVEL) * - * #define GOLEM_STONE 10 + * #define GOLEM_STONE 5 */ static int sp_create_stonegolem(castorder *co) diff --git a/src/common/kernel/unit.c b/src/common/kernel/unit.c index e4f83000f..43719ef87 100644 --- a/src/common/kernel/unit.c +++ b/src/common/kernel/unit.c @@ -606,10 +606,11 @@ set_level(unit * u, skill_t id, int value) while (sv != u->skills + u->skill_size) { if (sv->id == id) { sk_set(sv, value); - break; + return; } ++sv; } + sk_set(add_skill(u, id), value); #endif }