From 876b09a15708933280997a56345a2f58fd8b722d Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 10 May 2005 23:01:04 +0000 Subject: [PATCH] fix assert --- stepmania/src/RageFileDriverTimeout.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stepmania/src/RageFileDriverTimeout.cpp b/stepmania/src/RageFileDriverTimeout.cpp index 2f6d8fe15b..4bc64018ff 100644 --- a/stepmania/src/RageFileDriverTimeout.cpp +++ b/stepmania/src/RageFileDriverTimeout.cpp @@ -314,6 +314,9 @@ void ThreadedFileWorker::Close( RageFileBasic *pFile ) { ASSERT( m_pChildDriver != NULL ); /* how did you get a file to begin with? */ + if( pFile == NULL ) + return; + if( !IsTimedOut() ) { /* If we're not in a timed-out state, try to wait for the deletion to complete