X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=src%2Fai.c;h=4b1aa23b274ef783850492f21d3c50ea78b1ee2d;hp=25d58274624efd7f151058321cb3135f8e692c32;hb=52265793501a00845a0d6108d1af6e50e3ece379;hpb=a0ab45afa68fbc41df45581addf497ccc8204263 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;