openbsd-ports/games/stepmania/patches/patch-src_PrefsManager_cpp
espie 4a8e928b2e update to a newer version
needs the EPOCH hammer because the old beta numbering didn't parse correctly

new version uses cmake... no sound yet until eric@  commits his fix to
pulseaudio (which is currently #@!#@!@ broken)

zap WITH_GTK2 since it's only a loading screen and this makes for a shitload
of libraries for about nothing.

Audio/video synch is not perfect, but it's a good basis for further work
anyway
2021-02-24 12:09:25 +00:00

18 lines
616 B
Plaintext

$OpenBSD: patch-src_PrefsManager_cpp,v 1.2 2021/02/24 12:09:25 espie Exp $
Fix for Clang 6.
Handpicked from upstream commit 8660d49aae9e4e357d750ffd1dbb7ef850b2b76d.
Index: src/PrefsManager.cpp
--- src/PrefsManager.cpp.orig
+++ src/PrefsManager.cpp
@@ -374,7 +374,7 @@ void PrefsManager::StoreGamePrefs()
ASSERT( !m_sCurrentGame.Get().empty() );
// save off old values
- GamePrefs &gp = m_mapGameNameToGamePrefs[m_sCurrentGame];
+ GamePrefs &gp = m_mapGameNameToGamePrefs[m_sCurrentGame.ToString()];
gp.m_sAnnouncer = m_sAnnouncer;
gp.m_sTheme = m_sTheme;
gp.m_sDefaultModifiers = m_sDefaultModifiers;