mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
- 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
This commit is contained in:
@@ -278,6 +278,8 @@ BOOLEAN InitializeTacticalPortraits( )
|
|||||||
{
|
{
|
||||||
VOBJECT_DESC VObjectDesc;
|
VOBJECT_DESC VObjectDesc;
|
||||||
|
|
||||||
|
VObjectDesc.fCreateFlags = VOBJECT_CREATE_FROMFILE;
|
||||||
|
|
||||||
//CHRISL: Moved from InitializeTacticalInterface so we can reinitialize portait graphics as we need to
|
//CHRISL: Moved from InitializeTacticalInterface so we can reinitialize portait graphics as we need to
|
||||||
//legion 2 jazz
|
//legion 2 jazz
|
||||||
if (gGameSettings.fOptions[ TOPTION_SHOW_TACTICAL_FACE_ICONS ] == TRUE)
|
if (gGameSettings.fOptions[ TOPTION_SHOW_TACTICAL_FACE_ICONS ] == TRUE)
|
||||||
@@ -467,12 +469,9 @@ BOOLEAN InitializeTacticalInterface( )
|
|||||||
if( !AddVideoObject( &VObjectDesc, &guiBURSTACCUM ) )
|
if( !AddVideoObject( &VObjectDesc, &guiBURSTACCUM ) )
|
||||||
AssertMsg(0, "Missing INTERFACE\\burst1.sti" );
|
AssertMsg(0, "Missing INTERFACE\\burst1.sti" );
|
||||||
|
|
||||||
|
|
||||||
VObjectDesc.fCreateFlags = VOBJECT_CREATE_FROMFILE;
|
|
||||||
|
|
||||||
//CHRISL: Moved to seperate function so we can call seperately
|
//CHRISL: Moved to seperate function so we can call seperately
|
||||||
InitializeTacticalPortraits();
|
InitializeTacticalPortraits();
|
||||||
|
|
||||||
//legion
|
//legion
|
||||||
if (gGameSettings.fOptions[ TOPTION_SHOW_TACTICAL_FACE_GEAR ] == TRUE)
|
if (gGameSettings.fOptions[ TOPTION_SHOW_TACTICAL_FACE_GEAR ] == TRUE)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user