crashbug leere magier

error fuer fehlende curseinfo
This commit is contained in:
Enno Rehling 2007-02-11 21:48:35 +00:00
parent 30a43b925d
commit a9a8a9a6d3
2 changed files with 4 additions and 2 deletions

View File

@ -249,6 +249,8 @@ print_curses(FILE * F, const faction * viewer, const void * obj, typ_t typ)
self = c->type->cansee(viewer, obj, typ, c, self);
}
dh = c->type->curseinfo(viewer->locale, obj, typ, c, self);
} else {
log_error(("no curseinfo for %s\n", c->type->cname));
}
if (dh==0) {
if (c->type->info_str!=NULL) {

View File

@ -2476,7 +2476,7 @@ magic(void)
boolean casted = false;
order * ord;
if (u->race == new_race[RC_SPELL] || fval(u, UFL_LONGACTION))
if (u->number<=0 || u->race == new_race[RC_SPELL])
continue;
if (u->race == new_race[RC_INSECT] && r_insectstalled(r) &&