Merged from revision: 6939

- Bugfix: Fixed crash (Access violation popup) in Release build (VS2005/2008) when quitting the game (thx Kriplo)

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6940 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2014-02-18 07:21:55 +00:00
parent 4eb243c21d
commit 0c82f3bb26
+1 -1
View File
@@ -986,7 +986,7 @@ BOOLEAN ReadInTaunts(STR fileName, BOOLEAN localizedVersion)
memset(&pData,0,sizeof(pData));
pData.curArray = &(zTaunt[num_found_taunt]);
pData.maxArraySize = NUM_TAUNT;
pData.maxArraySize = NUM_TAUNT - num_found_taunt;//dnl ch86 180214
XML_SetUserData(parser, &pData);
if(!XML_Parse(parser, lpcBuffer, uiFSize, TRUE))