diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-03-23 21:57:41 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-03-31 21:03:08 +0200 |
commit | 45521d593560b120d406acfb9926697e7ad5e423 (patch) | |
tree | 4d25de9d5aa29a029ac46e3bc6551a32491f8ea8 /src/midimapparser.cc | |
parent | d172d756cfcdfbde5c6b8c6d25a51f58624739e6 (diff) |
More cleanup.
Diffstat (limited to 'src/midimapparser.cc')
-rw-r--r-- | src/midimapparser.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/midimapparser.cc b/src/midimapparser.cc index ec4c10d..cc97280 100644 --- a/src/midimapparser.cc +++ b/src/midimapparser.cc @@ -30,7 +30,8 @@ void MidiMapParser::startTag(const std::string& name, const attr_t& attr) { if(name == "map") { - if(attr.find("note") != attr.end() && attr.find("instr") != attr.end()) + if((attr.find("note") != attr.end()) && + (attr.find("instr") != attr.end())) { midimap[std::stoi(attr.at("note"))] = attr.at("instr"); } |