Fix bug where structure was not being initialized. This caused occasional crashes when dialog with text was displayed.

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1064 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
SpaceViking
2007-07-17 02:38:05 +00:00
parent 3259e9fb1b
commit cec7853cf9
+4 -1
View File
@@ -2070,6 +2070,9 @@ void HandleExternNPCSpeechFace( INT32 iIndex )
// Set flag to say WE control when to set inactive!
gFacesData[ iFaceIndex ].uiFlags |= FACE_INACTIVE_HANDLED_ELSEWHERE;
// WDS - bug fix: VideoOverlayDesc must be initialized! - 07/16/2007
memset( &VideoOverlayDesc, 0, sizeof( VIDEO_OVERLAY_DESC ) );
if ( guiCurrentScreen != MAP_SCREEN )
{
// Setup video overlay!
@@ -2918,4 +2921,4 @@ void SetExternMapscreenSpeechPanelXY( INT16 sXPos, INT16 sYPos )
{
gsExternPanelXPosition = sXPos;
gsExternPanelYPosition = sYPos;
}
}