diff --git a/src/lib/subs/sect.c b/src/lib/subs/sect.c index d392d3dc..a0069733 100644 --- a/src/lib/subs/sect.c +++ b/src/lib/subs/sect.c @@ -80,6 +80,7 @@ sct_prewrite(int id, void *old, void *new) if (!civs) { sp->sct_work = 100; + sp->sct_loyal = 0; sp->sct_oldown = own; } @@ -90,6 +91,7 @@ sct_prewrite(int id, void *old, void *new) if (own && !civs && !mil && !has_units(sp->sct_x, sp->sct_y, own) && !(sp->sct_flags & MOVE_IN_PROGRESS)) { own = sp->sct_own = 0; + sp->sct_oldown = 0; sp->sct_mobil = 0; if (sp->sct_type == SCT_CAPIT || sp->sct_type == SCT_MOUNT) caploss(sp, prev_own, ""); diff --git a/tests/navi-march/final.xdump b/tests/navi-march/final.xdump index baec8447..fb1d4346 100644 --- a/tests/navi-march/final.xdump +++ b/tests/navi-march/final.xdump @@ -101,7 +101,7 @@ owner xloc yloc des effic mobil off loyal terr0 terr1 terr2 terr3 dterr xdist yd 3 -6 6 10 100 0 0 0 0 0 0 0 0 -6 6 0 0 100 0 10 0 0 0 0 0 3 100 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 healthy 0 0 0 0 0 0 0 0 2 -4 6 10 100 0 0 0 0 0 0 0 0 -4 6 0 0 100 0 10 0 0 0 0 0 2 100 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 healthy 0 0 0 0 0 0 0 0 2 -2 6 10 100 0 0 0 0 0 0 0 0 -2 6 0 0 100 0 10 0 0 0 0 0 2 100 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 healthy 0 0 0 0 0 0 0 0 -0 1 7 10 100 0 0 0 0 0 0 0 0 1 7 0 0 100 1 10 0 0 0 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