--- linuxsampler/trunk/src/engines/sfz/EngineChannel.cpp 2010/09/21 06:00:25 2126 +++ linuxsampler/trunk/src/engines/sfz/EngineChannel.cpp 2010/09/22 18:59:16 2127 @@ -39,8 +39,7 @@ // fully loaded, try to give back instrument again (see bug #113) InstrumentChangeCmd< ::sfz::Region, ::sfz::Instrument>& cmd = ChangeInstrument(NULL); if (cmd.pInstrument) { - InstrumentResourceManager* instrs = dynamic_cast(pEngine->GetInstrumentManager()); - instrs->HandBack(cmd.pInstrument, this); + Engine::instruments.HandBack(cmd.pInstrument, this); } /////// }