From fc5ef111d1d759d362294ad1940deb94b4a1eb61 Mon Sep 17 00:00:00 2001 From: CatsaCode Date: Mon, 13 Apr 2026 21:15:52 -0400 Subject: [PATCH] Fix default bomb preview crash --- src/note.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/note.cpp b/src/note.cpp index 0a4a2f3..88daad6 100644 --- a/src/note.cpp +++ b/src/note.cpp @@ -411,13 +411,13 @@ UnityEngine::Transform* CustomModels::PreviewNotes(UnityEngine::Vector3 position auto parent = GetDefaultNotes()->transform; parent->SetParent(preview, false); - for (auto noteController : parent->GetComponentsInChildren()) { - UnityEngine::Object::DestroyImmediate(noteController); - } - ColorDefaultNotes(parent, MenuLeftColor(), MenuRightColor()); } + for (auto noteController : preview->GetComponentsInChildren()) { + UnityEngine::Object::DestroyImmediate(noteController); + } + RemoveLoadingGuard(); preview->SetPositionAndRotation(position, rotation);