From edf44d278da25cb159024fc60596b76bec227924 Mon Sep 17 00:00:00 2001 From: "Tim E. Real" Date: Thu, 14 Jul 2011 06:21:40 +0000 Subject: Fixed loading of old songs with synths - added static keyword to array in each synth's oldMidiStateHeader() member. --- muse2/synti/fluidsynth/fluidsynti.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'muse2/synti/fluidsynth/fluidsynti.cpp') diff --git a/muse2/synti/fluidsynth/fluidsynti.cpp b/muse2/synti/fluidsynth/fluidsynti.cpp index 35ee16df..63a516ed 100644 --- a/muse2/synti/fluidsynth/fluidsynti.cpp +++ b/muse2/synti/fluidsynth/fluidsynti.cpp @@ -144,7 +144,7 @@ bool FluidSynth::init(const char* name) int FluidSynth::oldMidiStateHeader(const unsigned char** data) const { - unsigned char const d[2] = {MUSE_SYNTH_SYSEX_MFG_ID, FLUIDSYNTH_UNIQUE_ID}; + static unsigned char const d[2] = {MUSE_SYNTH_SYSEX_MFG_ID, FLUIDSYNTH_UNIQUE_ID}; *data = &d[0]; return 2; } -- cgit v1.2.3