[MusicXML import] only four staves per part imported
MusicXML import is limited to four staves per part, while MuseScore itself has no such limit. Staff 5 (and up) will be empty after import, console output shows one or more "MusicXMLParserPass1::determineStaffMoveVoice: too many voices" messages.
Root cause is the incorrect use of MAX_STAVES, which in the current MuseScore implementation affects instrument templates only, but is still used in the MusicXML importer.
Preferred solution is to replace all MAX_STAVES-sized arrays in the MusicXML importer by variable sized structures (e.g. std::vector).
See attached file, which imports with staff 5 empty.