Checkpoint with several changes, committed so Stas can play with debug code.
[super-star-trek.git] / src / ai.c
index 685fe69947d77f8547c34450966ed4dfe6929480..b753b86f3ad8569bc472ab4b7ac4c06949cdd62f 100644 (file)
--- a/src/ai.c
+++ b/src/ai.c
@@ -334,7 +334,7 @@ static bool movescom(coord iq, int flag, int *ipage)
            game.state.plnets[i].crystals == 1) {
            /* destroy the planet */
            DESTROY(&game.state.plnets[i]);
-           game.state.galaxy[game.state.kscmdr.x][game.state.kscmdr.y].planet = NULL;
+           game.state.galaxy[game.state.kscmdr.x][game.state.kscmdr.y].planet = NOPLANET;
            if (game.damage[DRADIO] == 0.0 || game.condit == IHDOCKED) {
                if (*ipage==0) pause_game(1);
                *ipage = 1;