From a740001f910fdd49c8a05e8f0e7e9b45ac59d6db Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Fri, 28 Nov 2003 04:57:54 +0000 Subject: [PATCH] If a file is already open, close it. --- stepmania/src/RageFile.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/stepmania/src/RageFile.cpp b/stepmania/src/RageFile.cpp index 671af67b40..3d2f03985f 100644 --- a/stepmania/src/RageFile.cpp +++ b/stepmania/src/RageFile.cpp @@ -48,6 +48,7 @@ void CollapsePath( CString &sPath ) bool RageFile::Open(const CString& path, const char *mode) { + Close(); mPath = path; FixSlashesInPlace(mPath); mFP = fopen(mPath, mode);