diff --git a/stepmania/src/ScreenDebugOverlay.cpp b/stepmania/src/ScreenDebugOverlay.cpp index 953fd0fd73..ddb720c9fd 100644 --- a/stepmania/src/ScreenDebugOverlay.cpp +++ b/stepmania/src/ScreenDebugOverlay.cpp @@ -353,7 +353,7 @@ void ScreenDebugOverlay::UpdateText() } template -bool GetValueFromMap( const map &m, const U &key, V &val ) +static bool GetValueFromMap( const map &m, const U &key, V &val ) { typename map::const_iterator it = m.find(key); if( it == m.end() ) @@ -382,7 +382,7 @@ bool ScreenDebugOverlay::OverlayInput( const InputEventPlus &input ) g_bIsDisplayed = false; } - int iPage; + int iPage = 0; if( g_bIsDisplayed && GetValueFromMap(g_Mappings.pageButton, input.DeviceI, iPage) ) { if( input.type != IET_FIRST_PRESS )