From 82b7f71728f8e354d0e318473616e570b8be6648 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 21 May 2005 08:56:08 +0000 Subject: [PATCH] fix RageFileObjTimeout::Copy returns a copy of the underlying object, instead of a copied RageFileObjTimeout --- stepmania/src/RageFileDriverTimeout.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stepmania/src/RageFileDriverTimeout.cpp b/stepmania/src/RageFileDriverTimeout.cpp index f3e44523c1..56c19143a5 100644 --- a/stepmania/src/RageFileDriverTimeout.cpp +++ b/stepmania/src/RageFileDriverTimeout.cpp @@ -631,7 +631,7 @@ public: RageFileBasic *Copy() const { CString sError; - RageFileBasic *pRet = m_pWorker->Copy( m_pFile, sError ); + RageFileBasic *pCopy = m_pWorker->Copy( m_pFile, sError ); if( m_pFile == NULL ) { @@ -639,13 +639,13 @@ public: return NULL; } - if( pRet == NULL ) + if( pCopy == NULL ) { // SetError( sError ); return NULL; } - return pRet; + return new RageFileObjTimeout( m_pWorker, pCopy, m_iFileSize ); } protected: