forked from mirror/openmw-tes3mp
Fix crash when input settings contain extra channels
This commit is contained in:
parent
7f95e1e6c2
commit
24e5a90bab
1 changed files with 1 additions and 1 deletions
2
extern/oics/ICSInputControlSystem.cpp
vendored
2
extern/oics/ICSInputControlSystem.cpp
vendored
|
@ -84,7 +84,7 @@ namespace ICS
|
||||||
TiXmlElement* xmlChannel = xmlControl->FirstChildElement("Channel");
|
TiXmlElement* xmlChannel = xmlControl->FirstChildElement("Channel");
|
||||||
while(xmlChannel)
|
while(xmlChannel)
|
||||||
{
|
{
|
||||||
controlChannelCount = std::max(channelCount, FromString<size_t>(xmlChannel->Attribute("number")));
|
controlChannelCount = std::max(channelCount, FromString<size_t>(xmlChannel->Attribute("number"))+1);
|
||||||
|
|
||||||
xmlChannel = xmlChannel->NextSiblingElement("Channel");
|
xmlChannel = xmlChannel->NextSiblingElement("Channel");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue