From 3a4365faeaaf01960c70fc9c2280bb49fab4222f Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 29 Dec 2003 01:10:16 +0000 Subject: [PATCH] fix hang --- stepmania/src/ListDisplay.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stepmania/src/ListDisplay.cpp b/stepmania/src/ListDisplay.cpp index 343ae2b419..265a351616 100644 --- a/stepmania/src/ListDisplay.cpp +++ b/stepmania/src/ListDisplay.cpp @@ -81,6 +81,10 @@ void ListDisplay::Update( float fDeltaTime ) { ActorFrame::Update( fDeltaTime ); + /* If we have no children, the code below will busy loop. */ + if( !m_SubActors.size() ) + return; + while( fDeltaTime > 0 ) { // handle pause