From 48a9816f6dbeb7d3bed6587ddd6996989f642d45 Mon Sep 17 00:00:00 2001 From: Wanne Date: Sun, 12 Jun 2011 07:35:08 +0000 Subject: [PATCH] - Fixed crash (could not load existing file) in Release version when initializing portrait icons o "VObjectDesc.fCreateFlags = VOBJECT_CREATE_FROMFILE" was not set! git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@4493 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Tactical/Interface.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Tactical/Interface.cpp b/Tactical/Interface.cpp index 7553636bc..f42b4d5b8 100644 --- a/Tactical/Interface.cpp +++ b/Tactical/Interface.cpp @@ -278,6 +278,8 @@ BOOLEAN InitializeTacticalPortraits( ) { VOBJECT_DESC VObjectDesc; + VObjectDesc.fCreateFlags = VOBJECT_CREATE_FROMFILE; + //CHRISL: Moved from InitializeTacticalInterface so we can reinitialize portait graphics as we need to //legion 2 jazz if (gGameSettings.fOptions[ TOPTION_SHOW_TACTICAL_FACE_ICONS ] == TRUE) @@ -467,12 +469,9 @@ BOOLEAN InitializeTacticalInterface( ) if( !AddVideoObject( &VObjectDesc, &guiBURSTACCUM ) ) AssertMsg(0, "Missing INTERFACE\\burst1.sti" ); - - VObjectDesc.fCreateFlags = VOBJECT_CREATE_FROMFILE; - //CHRISL: Moved to seperate function so we can call seperately InitializeTacticalPortraits(); - + //legion if (gGameSettings.fOptions[ TOPTION_SHOW_TACTICAL_FACE_GEAR ] == TRUE) {