From 56ac27b8f4b64a231a07f070fce30d5c42fccac0 Mon Sep 17 00:00:00 2001 From: Christopher Leggett Date: Mon, 19 Dec 2022 05:12:36 -0500 Subject: [PATCH] Fixes crash during randomization of individual sound effects. (#2203) * Fixes randomization of individual sound effects. * Re-adds the mistakenly removed const specifier. * Implements new randomization syntax that actually fixes the crash. * Increases default width of sfx editor menu. The default width was cutting off a lot of the text in the dropdowns due to the added Randomize button. --- soh/soh/Enhancements/sfx-editor/SfxEditor.cpp | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/soh/soh/Enhancements/sfx-editor/SfxEditor.cpp b/soh/soh/Enhancements/sfx-editor/SfxEditor.cpp index 0334f6b61..43d0534c4 100644 --- a/soh/soh/Enhancements/sfx-editor/SfxEditor.cpp +++ b/soh/soh/Enhancements/sfx-editor/SfxEditor.cpp @@ -297,19 +297,17 @@ void Draw_SfxTab(const std::string& tabId, const std::map