From dbb8dc0c2ed5274428d05eecb5a3ced2db856fbb Mon Sep 17 00:00:00 2001 From: FernTheDev <15272073+Fernthedev@users.noreply.github.com> Date: Thu, 27 Jun 2024 16:51:29 -0400 Subject: [PATCH] Fix comparison --- src/hooks/SceneTransition/SceneTransitionHelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/SceneTransition/SceneTransitionHelper.cpp b/src/hooks/SceneTransition/SceneTransitionHelper.cpp index 3085052..09b409f 100644 --- a/src/hooks/SceneTransition/SceneTransitionHelper.cpp +++ b/src/hooks/SceneTransition/SceneTransitionHelper.cpp @@ -93,7 +93,7 @@ bool SceneTransitionHelper::BasicPatch(SongCore::SongLoader::CustomBeatmapLevel* return x->difficultyBeatmaps | FirstOrDefault([&](auto&& y) { // short circuit - if (y == nullptr || y->difficulty == nullptr) return false; + if (y == nullptr || !y->difficulty) return false; BeatmapDifficulty mapDifficulty; GlobalNamespace::BeatmapDifficultySerializedMethods::BeatmapDifficultyFromSerializedName(