(unit_map): Replace player->owner with direct owner check and
player->god check. player->owner is not set if ef_ptr() is used as no post_read() is done. Broken in rev 1.38. Not completely fixed in rev 1.40.
This commit is contained in:
parent
de124108de
commit
74b263f3d8
1 changed files with 1 additions and 1 deletions
|
@ -348,7 +348,7 @@ unit_map(int unit_type, int uid, struct nstr_sect *nsp, char *originp)
|
|||
char *name;
|
||||
|
||||
gp = get_empobjp(unit_type, uid);
|
||||
if (!gp || gp->own != player->cnum || gp->own == 0)
|
||||
if (!gp || (gp->own != player->cnum && !player->god) || gp->own == 0)
|
||||
return RET_FAIL;
|
||||
|
||||
if (unit_type == EF_NUKE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue