wrong message parameters make crash

This commit is contained in:
Enno Rehling 2007-04-22 14:09:34 +00:00
parent 668809b9c2
commit 6c71a3765a
1 changed files with 2 additions and 1 deletions

View File

@ -260,9 +260,10 @@ cinfo_sparkle(const void * obj, typ_t typ, const curse *c, int self)
if (end==begin) return NULL; if (end==begin) return NULL;
else { else {
int index = begin + curse_geteffect(c) % (end-begin); int index = begin + curse_geteffect(c) % (end-begin);
return msg_message(mkname("curseinfo", effects[index]), "text id", buf, c->no); return msg_message(mkname("curseinfo", effects[index]), "unit id", u, c->no);
} }
} }
static struct curse_type ct_sparkle = { "sparkle", static struct curse_type ct_sparkle = { "sparkle",
CURSETYP_UNIT, CURSE_SPREADMODULO, ( M_MEN | M_DURATION ), CURSETYP_UNIT, CURSE_SPREADMODULO, ( M_MEN | M_DURATION ),
"Dieser Zauber ist einer der ersten, den junge Magier in der Schule lernen.", "Dieser Zauber ist einer der ersten, den junge Magier in der Schule lernen.",