diff --git a/extern/oics/ICSInputControlSystem.cpp b/extern/oics/ICSInputControlSystem.cpp index 34d16ed2b..27006e987 100644 --- a/extern/oics/ICSInputControlSystem.cpp +++ b/extern/oics/ICSInputControlSystem.cpp @@ -84,7 +84,7 @@ namespace ICS TiXmlElement* xmlChannel = xmlControl->FirstChildElement("Channel"); while(xmlChannel) { - controlChannelCount = std::max(channelCount, FromString(xmlChannel->Attribute("number"))); + controlChannelCount = std::max(channelCount, FromString(xmlChannel->Attribute("number"))+1); xmlChannel = xmlChannel->NextSiblingElement("Channel"); }