Skip to content

Commit

Permalink
Fixed crash when attempting to display the planet the player misjumpe…
Browse files Browse the repository at this point in the history
…d from in the F7 screen.

Closes #498
  • Loading branch information
AnotherCommander authored Jan 21, 2025
1 parent 77d283e commit affa790
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/Entities/PlayerEntityLegacyScriptEngine.m
Original file line number Diff line number Diff line change
Expand Up @@ -2782,7 +2782,7 @@ - (BOOL) processSceneString:(NSString*) item atOffset:(Vector) off

#if NEW_PLANETS
OOPlanetEntity *originalPlanet = nil;
if ([i_key isEqualToString:@"local-planet"])
if ([i_key isEqualToString:@"local-planet"] && [UNIVERSE sun])
{
originalPlanet = [UNIVERSE planet];
}
Expand Down

0 comments on commit affa790

Please sign in to comment.