fix multiselect + options icon crash

This commit is contained in:
Chris Danford
2004-01-11 02:28:10 +00:00
parent 028e5bd6c8
commit dc863c8f31
3 changed files with 35 additions and 22 deletions
+2 -1
View File
@@ -58,7 +58,8 @@ void OptionIcon::Load( PlayerNumber pn, CString sText, bool bHeader )
sText.Replace( " ", "\n" );
bool bVacant = (sText=="");
m_spr.SetState( pn*3 + (bHeader?0:(bVacant?1:2)) );
int iState = pn*3 + (bHeader?0:(bVacant?1:2));
m_spr.SetState( iState );
m_text.SetText( bHeader ? "" : sText );
m_text.SetZoom( TEXT_ZOOM );