]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/stre.c
Fix automatic supply of defending and reacting units
[empserver] / src / lib / commands / stre.c
index ee3c94c4552db8f7e5e1de7d0798c1115ab43a83..20a96083f623c3197e535987dfa775945a49185f 100644 (file)
@@ -138,7 +138,7 @@ units_in_sector(struct combat *def)
        if (land.lnd_ship >= 0)
            continue;
        d_unit = defense_val(&land);
-       if (!has_supply(&land))
+       if (!lnd_could_be_supplied(&land))
            d_unit /= 2.0;
        dtotal += d_unit;
     }