--- linuxsampler/trunk/src/engines/gig/Engine.cpp 2005/06/18 21:37:03 663 +++ linuxsampler/trunk/src/engines/gig/Engine.cpp 2005/06/19 15:11:20 665 @@ -917,7 +917,7 @@ this->iuiLastStolenKeyGlobally = iuiSelectedKey; this->itLastStolenVoiceGlobally = itSelectedVoice; this->pLastStolenChannel = pSelectedChannel; - break; // selection succeeded + goto stealable_voice_found; // selection succeeded } ++iuiSelectedKey; // get next key on current engine channel } @@ -936,6 +936,9 @@ } } + // jump point if a 'stealable' voice was found + stealable_voice_found: + #if CONFIG_DEVMODE if (!itSelectedVoice->IsActive()) { dmsg(1,("gig::Engine: ERROR, tried to steal a voice which was not active !!!\n")); @@ -1279,7 +1282,7 @@ } String Engine::Version() { - String s = "$Revision: 1.44 $"; + String s = "$Revision: 1.45 $"; return s.substr(11, s.size() - 13); // cut dollar signs, spaces and CVS macro keyword }