From 1325bc179bae645a9f36e32764675471444a7de4 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sun, 29 Dec 2013 20:41:30 +0100 Subject: [PATCH] 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 --- src/lib/commands/stop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/commands/stop.c b/src/lib/commands/stop.c index 30f99dd3..c700e0d5 100644 --- a/src/lib/commands/stop.c +++ b/src/lib/commands/stop.c @@ -29,7 +29,7 @@ * Known contributors to this file: * Thomas Ruschak, 1992 * Steve McClure, 1998 - * Markus Armbruster, 2006-2010 + * Markus Armbruster, 2006-2013 */ #include @@ -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;