bugfix for loading saved games which do not have playeruuid
This commit is contained in:
parent
8d8c9ab20c
commit
1097938c2e
|
@ -735,8 +735,10 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
for(int idx =0; idx < GameConstants::maxPlayers; idx++) {
|
for(int idx =0; idx < GameConstants::maxPlayers; idx++) {
|
||||||
const XmlNode *networkPlayerUUIDNode = gameSettingsNode->getChild("networkPlayerUUID",idx);
|
if(gameSettingsNode->hasChildAtIndex("networkPlayerUUID",idx) == true) {
|
||||||
networkPlayerUUID[idx] = networkPlayerUUIDNode->getAttribute("value")->getValue();
|
const XmlNode *networkPlayerUUIDNode = gameSettingsNode->getChild("networkPlayerUUID",idx);
|
||||||
|
networkPlayerUUID[idx] = networkPlayerUUIDNode->getAttribute("value")->getValue();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// int thisFactionIndex;
|
// int thisFactionIndex;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user