fix home mode edits

This commit is contained in:
Glenn Maynard
2006-03-11 06:06:48 +00:00
parent 8d54d072e3
commit fe45bb1e50
+9 -2
View File
@@ -237,9 +237,16 @@ void Steps::Compress() const
return;
}
if( !m_sFilename.empty() )
if( !m_sFilename.empty() && m_LoadedFromProfile == ProfileSlot_INVALID )
{
/* We have a file on disk; clear all data in memory. */
/*
* We have a file on disk; clear all data in memory.
*
* Data on profiles can't be accessed normally (need to mount and time-out the
* device), and when we start a game and load edits, we want to be sure that
* it'll be available if the user picks it and pulls the device. Also,
* Decompress() doesn't know how to load .edits.
*/
m_pNoteData->Init();
m_bNoteDataIsFilled = false;