From 34e865b329daff89fcf7d6ea6fc7652faded541d Mon Sep 17 00:00:00 2001 From: kodenamekrak Date: Sun, 31 Mar 2024 13:12:48 +0100 Subject: [PATCH] return early if null --- src/ColorManager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ColorManager.cpp b/src/ColorManager.cpp index 4f404c2..4752c95 100644 --- a/src/ColorManager.cpp +++ b/src/ColorManager.cpp @@ -71,6 +71,7 @@ namespace QonsistentSaberColors { auto playerDataModel = UnityEngine::Resources::FindObjectsOfTypeAll().front_or_default(); if(!playerDataModel) { colorSchemesSettings = nullptr; + return; } colorSchemesSettings = playerDataModel->playerData->colorSchemesSettings; }