From 34acb34ed63c0f94da67b0beb28cd1ff59264e2e Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Fri, 3 May 2024 04:10:29 -0400 Subject: [PATCH] Kill another non-special-system crash. --- sc2/src/uqm/planets/solarsys.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sc2/src/uqm/planets/solarsys.c b/sc2/src/uqm/planets/solarsys.c index dd696fd0a..ce690706d 100644 --- a/sc2/src/uqm/planets/solarsys.c +++ b/sc2/src/uqm/planets/solarsys.c @@ -1754,7 +1754,8 @@ GetNamedPlanetaryBody (void) assert (pSolarSysState->pOrbitalDesc != NULL); - if (!strcmp(CurStarDescPtr->supplement, "Sol")) + if( !CurStarDescPtr->supplement ) return NULL; + else if (!strcmp(CurStarDescPtr->supplement, "Sol")) { // Planets and moons in Sol int planet; int moon;