work around odd compiler problem

This commit is contained in:
Glenn Maynard
2004-06-19 23:04:10 +00:00
parent 48408e4da5
commit ec3268c86c
4 changed files with 8 additions and 4 deletions
+2 -1
View File
@@ -130,7 +130,8 @@ void NoteDisplay::Load( int iColNum, PlayerNumber pn, CString NoteSkin, float fY
m_fYReverseOffsetPixels = fYReverseOffsetPixels;
/* Normally, this is empty and we use the style table entry via ColToButtonName. */
CString Button = g_NoteFieldMode[m_PlayerNumber].NoteButtonNames[iColNum];
NoteFieldMode &mode = g_NoteFieldMode[pn];
CString Button = mode.NoteButtonNames[iColNum];
if(Button == "")
Button = NoteSkinManager::ColToButtonName(iColNum);