From 8eaaad1bfbd75895e9f85c4a397ce7f6f431e143 Mon Sep 17 00:00:00 2001 From: RandomityGuy <31925790+RandomityGuy@users.noreply.github.com> Date: Fri, 12 Jul 2024 14:26:30 +0530 Subject: [PATCH] minor load crash fixes --- src/MarbleWorld.hx | 3 ++- src/gui/MPEndGameGui.hx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/MarbleWorld.hx b/src/MarbleWorld.hx index d75e0807..48250219 100644 --- a/src/MarbleWorld.hx +++ b/src/MarbleWorld.hx @@ -2904,7 +2904,8 @@ class MarbleWorld extends Scheduler { sky.dispose(); sky = null; instanceManager = null; - collisionWorld.dispose(); + if (collisionWorld != null) + collisionWorld.dispose(); collisionWorld = null; particleManager = null; namedObjects = null; diff --git a/src/gui/MPEndGameGui.hx b/src/gui/MPEndGameGui.hx index f23368b4..5535e23d 100644 --- a/src/gui/MPEndGameGui.hx +++ b/src/gui/MPEndGameGui.hx @@ -155,7 +155,7 @@ class MPEndGameGui extends GuiImage { headerML.extent = new Vector(750, 14); headerML.horizSizing = Width; headerML.text.textColor = 0xFFFFFF; - headerML.text.text = ' Name Score ${hasPlatinum ? " " : ""} Marble'; + headerML.text.text = ' Name Score ${hasPlatinum ? " " : ""} Marble'; middleCtrl.addChild(headerML); var ourRank = scores.indexOf(scores.filter(x -> x.us == true)[0]) + 1;