From 7e40f74ae80b57fcc6943ddaea1c26005d3a2b84 Mon Sep 17 00:00:00 2001 From: RandomityGuy <31925790+RandomityGuy@users.noreply.github.com> Date: Mon, 10 Feb 2025 14:19:02 +0530 Subject: [PATCH] fix this --- src/Marble.hx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Marble.hx b/src/Marble.hx index 3e288ea5..051aaa54 100644 --- a/src/Marble.hx +++ b/src/Marble.hx @@ -658,6 +658,8 @@ class Marble extends GameObject { } function loadMarbleAttributes() { + if (this.level == null || this.level.mission == null) + return; var attribs = this.level.mission.marbleAttributes; if (attribs.exists("maxrollvelocity")) this._maxRollVelocity = MisParser.parseNumber(attribs.get("maxrollvelocity"));