diff --git a/src/star_system.cpp b/src/star_system.cpp index 8883ce7..195d64b 100644 --- a/src/star_system.cpp +++ b/src/star_system.cpp @@ -267,6 +267,7 @@ StarSystem::StarSystem(int sector_x, int sector_y, int system_idx) { SBody* planet = new SBody; planet->type = TYPE_PLANET_DWARF; + planet->supertype = SUPERTYPE_NONE; planet->seed = rand.Int32(); planet->temp = 0; planet->parent = primary; @@ -405,6 +406,7 @@ void StarSystem::SBody::PickPlanetType(SBody* star, double distToPrimary, MTRand SBody* moon = new SBody; moon->type = TYPE_PLANET_DWARF; + moon->supertype = SUPERTYPE_NONE; moon->seed = rand.Int32(); moon->temp = 0; moon->parent = this; diff --git a/src/star_system.h b/src/star_system.h index e2429c8..b6ea72e 100644 --- a/src/star_system.h +++ b/src/star_system.h @@ -67,7 +67,7 @@ public: }; enum BodySuperType { - SUPERTYPE_STAR, SUPERTYPE_ROCKY_PLANET, SUPERTYPE_GAS_GIANT + SUPERTYPE_NONE, SUPERTYPE_STAR, SUPERTYPE_ROCKY_PLANET, SUPERTYPE_GAS_GIANT }; struct BodyStats {