X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=src%2Fai.c;h=31d19ad13bdcf06293ab473679a9abfc09a817a5;hp=7f0112d5f957912ad9820a1bdb1e71d2a2838d1a;hb=2c5438d3c22fe863ad8054d214f2afdd061ad43a;hpb=321425c10831f63599c41c31e9d42bc4ec8001d0 diff --git a/src/ai.c b/src/ai.c index 7f0112d..31d19ad 100644 --- a/src/ai.c +++ b/src/ai.c @@ -360,7 +360,7 @@ static bool movescom(coord iq, bool avoid) if (same(game.state.planets[i].w, game.state.kscmdr) && game.state.planets[i].crystals == present) { /* destroy the planet */ - DESTROY(&game.state.planets[i]); + game.state.planets[i].pclass = destroyed; game.state.galaxy[game.state.kscmdr.x][game.state.kscmdr.y].planet = NOPLANET; if (!damaged(DRADIO) || game.condition == docked) { pause_game(true);