From 55107731ccdf7bfd3ac2eadbee0fd3625cd241e3 Mon Sep 17 00:00:00 2001 From: Ron Koenderink Date: Sun, 30 Jul 2006 01:05:17 +0000 Subject: [PATCH] (unit_map): Replace player->owner with direct owner check. player->owner if not set if ef_ptr() is used as no post_read() is done. Broken in rev 1.38. --- src/lib/common/maps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/common/maps.c b/src/lib/common/maps.c index 665fa4299..4139f240e 100644 --- a/src/lib/common/maps.c +++ b/src/lib/common/maps.c @@ -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 || !player->owner || gp->own == 0) + if (!gp || gp->own != player->cnum || gp->own == 0) return RET_FAIL; if (unit_type == EF_NUKE) -- 2.43.0