mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
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:
@@ -986,7 +986,7 @@ BOOLEAN ReadInTaunts(STR fileName, BOOLEAN localizedVersion)
|
|||||||
|
|
||||||
memset(&pData,0,sizeof(pData));
|
memset(&pData,0,sizeof(pData));
|
||||||
pData.curArray = &(zTaunt[num_found_taunt]);
|
pData.curArray = &(zTaunt[num_found_taunt]);
|
||||||
pData.maxArraySize = NUM_TAUNT;
|
pData.maxArraySize = NUM_TAUNT - num_found_taunt;//dnl ch86 180214
|
||||||
|
|
||||||
XML_SetUserData(parser, &pData);
|
XML_SetUserData(parser, &pData);
|
||||||
if(!XML_Parse(parser, lpcBuffer, uiFSize, TRUE))
|
if(!XML_Parse(parser, lpcBuffer, uiFSize, TRUE))
|
||||||
|
|||||||
Reference in New Issue
Block a user