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
|
@ -106,7 +106,7 @@ nxtitemp(struct nstr_item *np, int owner)
|
|||
selected = 0;
|
||||
break;
|
||||
default:
|
||||
logerror("nxtitemp: 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