Skip to content

Commit

Permalink
return early if null
Browse files Browse the repository at this point in the history
  • Loading branch information
kodenamekrak committed Mar 31, 2024
1 parent 962a4e7 commit 34e865b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ColorManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ namespace QonsistentSaberColors {
auto playerDataModel = UnityEngine::Resources::FindObjectsOfTypeAll<GlobalNamespace::PlayerDataModel*>().front_or_default();
if(!playerDataModel) {
colorSchemesSettings = nullptr;
return;
}
colorSchemesSettings = playerDataModel->playerData->colorSchemesSettings;
}
Expand Down

0 comments on commit 34e865b

Please sign in to comment.