--- linuxsampler/trunk/src/drivers/midi/MidiInstrumentMapper.cpp 2006/12/17 00:59:40 975 +++ linuxsampler/trunk/src/drivers/midi/MidiInstrumentMapper.cpp 2006/12/17 10:43:22 976 @@ -207,7 +207,7 @@ } throw Exception("Internal error: could not find unoccupied MIDI instrument map ID."); } - ID = lastIndex; + ID = lastIndex + 1; } __create_map: midiMaps[ID].name = MapName;