(CANT_REACH): New. Use it instead of CANT_HAPPEN() where possible.
(oops): Cope with NULL argument passed by CANT_REACH().
This commit is contained in:
parent
98d35dec3e
commit
6fee3f4535
13 changed files with 26 additions and 19 deletions
|
@ -69,7 +69,7 @@ trade_check_item_ok(union trdgenstr *tgp)
|
|||
return check_ship_ok(&tgp->shp);
|
||||
if (tgp->gen.ef_type == EF_NUKE)
|
||||
return check_nuke_ok(&tgp->nuk);
|
||||
CANT_HAPPEN("Bad EF_TYPE");
|
||||
CANT_REACH();
|
||||
pr("Trade lot went bad!\n");
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue