do not crash when missing curseinfo

This commit is contained in:
Enno Rehling 2007-03-07 13:24:12 +00:00
parent 39e942fd99
commit 041a258ab2
1 changed files with 4 additions and 2 deletions

View File

@ -166,8 +166,10 @@ cinfo_antimagiczone(const struct locale * lang, const void * obj, typ_t typ, cur
/* Magier spüren eine Antimagiezone */ /* Magier spüren eine Antimagiezone */
if (self == 2 || self == 1){ if (self == 2 || self == 1){
msg = msg_message("curseinfo::antimagiczone", "id", c->no); msg = msg_message("curseinfo::antimagiczone", "id", c->no);
nr_render(msg, lang, buf, sizeof(buf), NULL); if (msg) {
msg_release(msg); nr_render(msg, lang, buf, sizeof(buf), NULL);
msg_release(msg);
}
return 1; return 1;
} }