Magic number changes, get rid of nulplanet structure.
[super-star-trek.git] / moving.c
index 2fdefb66d5cbab249519967b2e31c4cb5144e069..0b9ecbed686f32c5b5997607e835ec29fc4fe9dc 100644 (file)
--- a/moving.c
+++ b/moving.c
@@ -764,8 +764,8 @@ void timwrp() {
                /* Make sure Galileo is consistant -- Snapshot may have been taken\r
                   when on planet, which would give us two Galileos! */\r
                gotit = 0;\r
-               for (l = 1; l <= inplan; l++) {\r
-                       if (game.state.plnets[l].known == 2) {\r
+               for (l = 0; l < inplan; l++) {\r
+                       if (game.state.plnets[l].known == shuttle_down) {\r
                                gotit = 1;\r
                                if (iscraft==1 && ship==IHE) {\r
                                        prout("Checkov-  \"Security reports the Galileo has disappeared, Sir!");\r