mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
BUGZILLA #492: Fixed CTD when switching from IMP page to another web page
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@4469 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -387,8 +387,6 @@ void EnterIMPColorChoice( void )
|
||||
|
||||
void RenderIMPColorChoice( void )
|
||||
{
|
||||
|
||||
|
||||
//render the metal background graphic
|
||||
RenderProfileBackGround();
|
||||
|
||||
@@ -1090,9 +1088,20 @@ void BtnIMPBigBodyCallback(GUI_BUTTON *btn,INT32 reason)
|
||||
|
||||
void IMPColorChoiceDisplayBoxes()
|
||||
{
|
||||
VOBJECT_DESC VObjectDesc;
|
||||
//UINT16 usPosX, usPosY;
|
||||
HVOBJECT hImageHandle;
|
||||
|
||||
// WANNE: BUGZILLA #492: This fixed the CTD when switching from the IMP color choosing page to the Email and then back
|
||||
// load the stats graphic and add it
|
||||
VObjectDesc.fCreateFlags=VOBJECT_CREATE_FROMFILE;
|
||||
FilenameForBPP("LAPTOP\\SkillTraitSmallGreyIdent.sti", VObjectDesc.ImageFile);
|
||||
if( !AddVideoObject(&VObjectDesc, &guiIST_GreyGoldBox4 ) )
|
||||
{
|
||||
Assert( 0 );
|
||||
return;
|
||||
}
|
||||
|
||||
// Stats
|
||||
GetVideoObject(&hImageHandle, guiIST_GreyGoldBox4 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user