Fix get_empobjp() not to reject EF_SECTOR
There's no technical reason for rejecting sector access by id. It's unusual, but not wrong. Also remove the superfluous test for EF_BAD; ef_ptr() covers that.
This commit is contained in:
parent
e63f38833b
commit
5b7a6af94e
1 changed files with 0 additions and 2 deletions
|
@ -60,8 +60,6 @@ obj_nameof(struct empobj *gp)
|
||||||
struct empobj *
|
struct empobj *
|
||||||
get_empobjp(int type, int id)
|
get_empobjp(int type, int id)
|
||||||
{
|
{
|
||||||
if (CANT_HAPPEN(type == EF_SECTOR || type == EF_BAD))
|
|
||||||
return NULL;
|
|
||||||
return ef_ptr(type, id);
|
return ef_ptr(type, id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue