From 9d30bde4c6d26753b79ef419b1c5f7e402162626 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Thu, 2 Jun 2005 20:06:26 +0000 Subject: [PATCH] fix AV if enable debug lights after starting gameplay with them disabled --- stepmania/src/ScreenGameplay.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stepmania/src/ScreenGameplay.cpp b/stepmania/src/ScreenGameplay.cpp index 941081b3b3..eafd2f94dd 100644 --- a/stepmania/src/ScreenGameplay.cpp +++ b/stepmania/src/ScreenGameplay.cpp @@ -1623,6 +1623,8 @@ void ScreenGameplay::UpdateLights() { if( !LIGHTSMAN->IsEnabled() ) return; + if( m_CabinetLightsNoteData.GetNumTracks() == 0 ) // light data wasn't loaded + return; const Style* pStyle = GAMESTATE->GetCurrentStyle(); bool bBlinkCabinetLight[NUM_CABINET_LIGHTS];