diff --git a/clibs b/clibs index f91ef37f0..27c8b3202 160000 --- a/clibs +++ b/clibs @@ -1 +1 @@ -Subproject commit f91ef37f08c5244bf616f1836c0aa9caaf36805c +Subproject commit 27c8b3202b52766465743c3324fc0b52c5ba4b11 diff --git a/conf/e2/locales.xml b/conf/e2/locales.xml new file mode 100644 index 000000000..f71525343 --- /dev/null +++ b/conf/e2/locales.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/src/kernel/curse.h b/src/kernel/curse.h index 4cff4f9a1..543755c2b 100644 --- a/src/kernel/curse.h +++ b/src/kernel/curse.h @@ -210,7 +210,7 @@ extern "C" { typedef struct curse { variant data; /* pointer auf spezielle curse-unterstructs */ struct curse *nexthash; - const curse_type *type; /* Zeiger auf ein curse_type-struct */ + const curse_type *type; /* Zeiger auf ein curse_type-struct */ struct unit *magician; /* Pointer auf den Magier, der den Spruch gewirkt hat */ double vigour; /* Stärke der Verzauberung, Widerstand gegen Antimagie */ double effect; diff --git a/src/kernel/unit.c b/src/kernel/unit.c index 27a296a15..f92916b2f 100644 --- a/src/kernel/unit.c +++ b/src/kernel/unit.c @@ -1301,7 +1301,7 @@ static int att_modification(const unit * u, skill_t sk) while (a && a->type == &at_curse) { curse *c = (curse *)a->data.v; - if (curse_active(c) && c->type == gbdream_ct) { + if (c->magician && curse_active(c) && c->type == gbdream_ct) { int effect = curse_geteffect_int(c); bool allied = alliedunit(c->magician, u->faction, HELP_GUARD); if (allied) { diff --git a/src/spells.c b/src/spells.c index e936a46a2..19c1e81f8 100644 --- a/src/spells.c +++ b/src/spells.c @@ -4726,7 +4726,7 @@ static int sp_gbdreams(castorder * co, const char *curse_name, int effect) /* Erfolg melden */ ADDMSG(&mage->faction->msgs, msg_message("regionmagic_effect", - "unit region command", c->magician, mage->region, co->order)); + "unit region command", mage, mage->region, co->order)); return cast_level; } @@ -4867,7 +4867,7 @@ int sp_sweetdreams(castorder * co) effect = 0.05f; c = create_curse(mage, &u->attribs, ct_find("orcish"), power, duration, effect, men); - msg = msg_message("sp_sweetdreams_effect", "mage unit region", c->magician, u, r); + msg = msg_message("sp_sweetdreams_effect", "mage unit region", mage, u, r); r_addmessage(r, mage->faction, msg); if (u->faction != mage->faction) { r_addmessage(r, u->faction, msg); @@ -4892,7 +4892,7 @@ int sp_disturbingdreams(castorder * co) c = create_curse(mage, &r->attribs, ct_find("badlearn"), power, duration, effect, 0); ADDMSG(&mage->faction->msgs, msg_message("sp_disturbingdreams_effect", - "mage region", c->magician, r)); + "mage region", mage, r)); return cast_level; }