diff options
author | Tim E. Real <termtech@rogers.com> | 2011-07-14 06:21:40 +0000 |
---|---|---|
committer | Tim E. Real <termtech@rogers.com> | 2011-07-14 06:21:40 +0000 |
commit | edf44d278da25cb159024fc60596b76bec227924 (patch) | |
tree | 0634d865a09cbe6702f0c3e0610c8d9f2fe4f1c7 /muse2/synti/organ | |
parent | f375241ea30ecbaecb341ed01bc0a29f2c35f817 (diff) |
Fixed loading of old songs with synths - added static keyword to array in
each synth's oldMidiStateHeader() member.
Diffstat (limited to 'muse2/synti/organ')
-rw-r--r-- | muse2/synti/organ/organ.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/muse2/synti/organ/organ.cpp b/muse2/synti/organ/organ.cpp index f3bb3b9f..60f3f52d 100644 --- a/muse2/synti/organ/organ.cpp +++ b/muse2/synti/organ/organ.cpp @@ -175,7 +175,7 @@ bool Organ::init(const char* name) int Organ::oldMidiStateHeader(const unsigned char** data) const { - unsigned char const d[3] = {MUSE_SYNTH_SYSEX_MFG_ID, ORGAN_UNIQUE_ID, INIT_DATA_CMD}; + static unsigned char const d[3] = {MUSE_SYNTH_SYSEX_MFG_ID, ORGAN_UNIQUE_ID, INIT_DATA_CMD}; *data = &d[0]; return 3; } |