From 7f9680660e9b04f5e725f75b4e5b3234c63a50fe Mon Sep 17 00:00:00 2001 From: waxfrenzy Date: Sun, 2 Mar 2003 19:45:10 +0000 Subject: [PATCH] Added check for pre-version 1 - fixes Soil and the Crop II and IV and any other older patches --- SpiralSound/Plugins/NoteSnapPlugin/NoteSnapPlugin.C | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/SpiralSound/Plugins/NoteSnapPlugin/NoteSnapPlugin.C b/SpiralSound/Plugins/NoteSnapPlugin/NoteSnapPlugin.C index f032fd6..2b47c75 100644 --- a/SpiralSound/Plugins/NoteSnapPlugin/NoteSnapPlugin.C +++ b/SpiralSound/Plugins/NoteSnapPlugin/NoteSnapPlugin.C @@ -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]; + } } }