From affa7908b1acf0a9cfef887ae1432261ef0c969c Mon Sep 17 00:00:00 2001 From: AnotherCommander Date: Tue, 21 Jan 2025 09:45:52 +0200 Subject: [PATCH] Fixed crash when attempting to display the planet the player misjumped from in the F7 screen. Closes #498 --- src/Core/Entities/PlayerEntityLegacyScriptEngine.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Entities/PlayerEntityLegacyScriptEngine.m b/src/Core/Entities/PlayerEntityLegacyScriptEngine.m index cf10a10f5..40b2b54e0 100644 --- a/src/Core/Entities/PlayerEntityLegacyScriptEngine.m +++ b/src/Core/Entities/PlayerEntityLegacyScriptEngine.m @@ -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]; }