mirror of
https://github.com/1dot13/source.git
synced 2026-09-16 14:47:17 +02:00
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:
@@ -107,10 +107,17 @@ CSEEndElementHandle(void *userData, const XML_Char *name)
|
|||||||
{
|
{
|
||||||
if ( localizedTextOnly_CSE )
|
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
|
else
|
||||||
|
{
|
||||||
pData->curArray[pData->curItem.uiIndex] = pData->curItem;
|
pData->curArray[pData->curItem.uiIndex] = pData->curItem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(strcmp(name, "uiIndex") == 0)
|
else if(strcmp(name, "uiIndex") == 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user