Browse Source

Added check for pre-version 1 - fixes Soil and the Crop II and IV and any other older patches

master
waxfrenzy 22 years ago
parent
commit
7f9680660e
1 changed files with 8 additions and 5 deletions
  1. +8
    -5
      SpiralSound/Plugins/NoteSnapPlugin/NoteSnapPlugin.C

+ 8
- 5
SpiralSound/Plugins/NoteSnapPlugin/NoteSnapPlugin.C View File

@@ -128,10 +128,13 @@ void NoteSnapPlugin::StreamOut(ostream &s)

void NoteSnapPlugin::StreamIn(istream &s)
{
int version;
s>>version;
for (int n=0; n<12; n++)
{
s>>m_Filter[n];
// Pre-version 1 - check for blank line
if (s.peek() != 10) {
int version;
s>>version;
for (int n=0; n<12; n++)
{
s>>m_Filter[n];
}
}
}

Loading…
Cancel
Save