Merged from revision: 7110

- Bugfix: Language version of *.CampaignStatsEvents.xml not working correctly

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7111 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2014-03-24 09:48:49 +00:00
parent 0516abde05
commit 873b9908dc
+8 -1
View File
@@ -107,10 +107,17 @@ CSEEndElementHandle(void *userData, const XML_Char *name)
{
if ( localizedTextOnly_CSE )
{
wcscpy(pData->curArray[pData->curItem.uiIndex].szText[0],pData->curItem.szText[0]);
// WANNE: Do not only copy the first szText, but copy ALL the szTexts!
//wcscpy(pData->curArray[pData->curItem.uiIndex].szText[0],pData->curItem.szText[0]);
for (int i = 0; i < MAX_CAMPAIGNSTATSEVENTS_TEXTS; i++)
{
wcscpy(zCampaignStatsEvent[pData->curItem.uiIndex].szText[i], pData->curItem.szText[i]);
}
}
else
{
pData->curArray[pData->curItem.uiIndex] = pData->curItem;
}
}
}
else if(strcmp(name, "uiIndex") == 0)