Use CANT_HAPPEN() rather than logerror() for some internal errors.
This commit is contained in:
parent
acdee1e3b6
commit
392ad15567
3 changed files with 3 additions and 4 deletions
|
@ -263,7 +263,7 @@ tend_nxtitem(struct nstr_item *np, caddr_t ptr)
|
|||
selected = 0;
|
||||
break;
|
||||
default:
|
||||
logerror("nxtitem: bad selector %d\n", np->sel);
|
||||
CANT_HAPPEN("bad np->sel");
|
||||
return 0;
|
||||
}
|
||||
if (selected && np->ncond) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue