/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2006, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Copyright (C) 1986-2007, Dave Pare, Jeff Bailey, Thomas Ruschak,
* Ken Stevens, Steve McClure
*
* This program is free software; you can redistribute it and/or modify
char *name;
gp = get_empobjp(unit_type, uid);
- if (!gp || !player->owner || gp->own == 0)
+ if (!gp || (gp->own != player->cnum && !player->god) || gp->own == 0)
return RET_FAIL;
if (unit_type == EF_NUKE)