From 68a3317536af6bf934c8396b1d8244311fd495db Mon Sep 17 00:00:00 2001 From: JappaWakka Date: Sat, 1 Feb 2025 09:35:24 +0100 Subject: [PATCH] Fix select sound being played too many times... MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit in the Pokédex screen when exiting a selectmenu --- P3D/Screens/Pokedex/PokedexScreen.vb | 1 + 1 file changed, 1 insertion(+) diff --git a/P3D/Screens/Pokedex/PokedexScreen.vb b/P3D/Screens/Pokedex/PokedexScreen.vb index 1ed653af7..ff87e5e0c 100644 --- a/P3D/Screens/Pokedex/PokedexScreen.vb +++ b/P3D/Screens/Pokedex/PokedexScreen.vb @@ -1087,6 +1087,7 @@ Public Class PokedexScreen SoundManager.PlaySound("select") End If Me.Visible = False + Exit For End If If New Rectangle(Core.windowSize.Width - 270, 66 * ((i + 1) - Scroll), 256, 64).Contains(MouseHandler.MousePosition) = True And Controls.Accept(True, False, False) = True Then Me.Index = i