Skip to content

Commit

Permalink
Fix comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernthedev committed Jun 27, 2024
1 parent 4c6d06f commit dbb8dc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/SceneTransition/SceneTransitionHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit dbb8dc0

Please sign in to comment.