summaryrefslogtreecommitdiff
path: root/muse2/synti/simpledrums2
diff options
context:
space:
mode:
authorTim E. Real <termtech@rogers.com>2011-07-14 06:21:40 +0000
committerTim E. Real <termtech@rogers.com>2011-07-14 06:21:40 +0000
commitedf44d278da25cb159024fc60596b76bec227924 (patch)
tree0634d865a09cbe6702f0c3e0610c8d9f2fe4f1c7 /muse2/synti/simpledrums2
parentf375241ea30ecbaecb341ed01bc0a29f2c35f817 (diff)
Fixed loading of old songs with synths - added static keyword to array in
each synth's oldMidiStateHeader() member.
Diffstat (limited to 'muse2/synti/simpledrums2')
-rw-r--r--muse2/synti/simpledrums2/simpledrums.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/muse2/synti/simpledrums2/simpledrums.cpp b/muse2/synti/simpledrums2/simpledrums.cpp
index 80f61102..2da4ed82 100644
--- a/muse2/synti/simpledrums2/simpledrums.cpp
+++ b/muse2/synti/simpledrums2/simpledrums.cpp
@@ -251,7 +251,7 @@ SimpleSynth::~SimpleSynth()
int SimpleSynth::oldMidiStateHeader(const unsigned char** data) const
{
- unsigned char const d[2] = {MUSE_SYNTH_SYSEX_MFG_ID, SIMPLEDRUMS_UNIQUE_ID};
+ static unsigned char const d[2] = {MUSE_SYNTH_SYSEX_MFG_ID, SIMPLEDRUMS_UNIQUE_ID};
*data = &d[0];
return 2;
}