in basicpotiontray.cpp
search [void CBasicPotionTray::CreateSubControl ()]
in here , i will use juver code for example.
Code:
for ( int i = 0; i < EMACTIONQUICK_SIZE; i++ )
{
CString strKeyword;
strKeyword.Format ( "BASIC_QUICK_POTION_TRAY_SLOT%d", i );
CBasicQuickPotionSlotEx* pSlot = new CBasicQuickPotionSlotEx;
pSlot->CreateSub ( this, strKeyword.GetString(), UI_FLAG_DEFAULT, QUICK_POTION_SLOT0 + i );
pSlot->CreateSubControl ( i );
RegisterControl ( pSlot );
m_pSlot[i] = pSlot;
}
change to
Code:
for ( int i = 0; i < EMACTIONQUICK_SIZE - 6; i++ )
{
CString strKeyword;
strKeyword.Format ( "BASIC_QUICK_POTION_TRAY_SLOT%d", i );
CBasicQuickPotionSlotEx* pSlot = new CBasicQuickPotionSlotEx;
pSlot->CreateSub ( this, strKeyword.GetString(), UI_FLAG_DEFAULT, QUICK_POTION_SLOT0 + i );
pSlot->CreateSubControl ( i );
RegisterControl ( pSlot );
m_pSlot[i] = pSlot;
}
and your problem will fixed.