Checkpoint with several changes, committed so Stas can play with debug code.
[super-star-trek.git] / src / reports.c
index 22a7cee19eafa012f2036e438a03ea27d75402fd..bca27e40d50cf516410dae564c37c5ffb2387e9f 100644 (file)
@@ -316,8 +316,8 @@ static void status(int req)
        break;
     case 10:
        if (game.options & OPTION_WORLDS) {
-           planet *here = game.state.galaxy[game.quadrant.x][game.quadrant.y].planet;
-           if (here && here->inhabited != UNINHABITED)
+           int here = game.state.galaxy[game.quadrant.x][game.quadrant.y].planet;
+           if (here != NOPLANET && game.state.plnets[here].inhabited != UNINHABITED)
                proutn("Major system  %s", systemname(here));
            else
                proutn("Sector is uninhabited");