X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=src%2Fai.c;h=4b1aa23b274ef783850492f21d3c50ea78b1ee2d;hb=fdd2f983f44b38ff8403f32ea0ba15b77d55aaba;hp=25d58274624efd7f151058321cb3135f8e692c32;hpb=e3730bb826efe601fe51626aab064d395733d4c3;p=super-star-trek.git diff --git a/src/ai.c b/src/ai.c index 25d5827..4b1aa23 100644 --- a/src/ai.c +++ b/src/ai.c @@ -351,7 +351,7 @@ static int movescom(int iqx, int iqy, int flag, int *ipage) game.state.plnets[i].crystals == 1) { /* destroy the planet */ DESTROY(&game.state.plnets[i]); - game.state.galaxy[game.state.isx][game.state.isy].planets -= 1; + game.state.galaxy[game.state.isx][game.state.isy].planet = NULL; if (game.damage[DRADIO] == 0.0 || game.condit == IHDOCKED) { if (*ipage==0) pause_game(1); *ipage = 1;