From cec7853cf990f3bc9ace2055ae2b320a96fb0b79 Mon Sep 17 00:00:00 2001 From: SpaceViking Date: Tue, 17 Jul 2007 02:38:05 +0000 Subject: [PATCH] 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 --- Tactical/Dialogue Control.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Tactical/Dialogue Control.cpp b/Tactical/Dialogue Control.cpp index 7c275f77..d32be324 100644 --- a/Tactical/Dialogue Control.cpp +++ b/Tactical/Dialogue Control.cpp @@ -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; -} \ No newline at end of file +}