start stop: Don't operate on dead units when used by a deity
Screwed up when start, stop were extended to units in commit eb1512d
,
v4.3.6.
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
216470a8d5
commit
1325bc179b
1 changed files with 2 additions and 2 deletions
|
@ -29,7 +29,7 @@
|
|||
* Known contributors to this file:
|
||||
* Thomas Ruschak, 1992
|
||||
* Steve McClure, 1998
|
||||
* Markus Armbruster, 2006-2010
|
||||
* Markus Armbruster, 2006-2013
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
@ -160,7 +160,7 @@ start_stop_unit(int type, char *arg, int off)
|
|||
prdate();
|
||||
nunit = 0;
|
||||
while (nxtitem(&nstr, &unit)) {
|
||||
if (!player->owner)
|
||||
if (!player->owner || !unit.gen.own)
|
||||
continue;
|
||||
if (!unit.gen.off == !off)
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue