diff --git a/Assets/PerfectWorld/Scripts/UI/GamePlay/CdlgQuickBar.cs b/Assets/PerfectWorld/Scripts/UI/GamePlay/CdlgQuickBar.cs index c42fe6b958..95f32fe94b 100644 --- a/Assets/PerfectWorld/Scripts/UI/GamePlay/CdlgQuickBar.cs +++ b/Assets/PerfectWorld/Scripts/UI/GamePlay/CdlgQuickBar.cs @@ -47,7 +47,6 @@ namespace BrewMonster var a_pSCS = new List(); var a_pszPanel = new List(); GetQuickBarNameAndSC(pHost, a_pszPanel, a_pSCS, nCurPanel9, nCurPanel8); - if (a_pSCS == null || a_pSCS.Count < 2) return false; @@ -62,14 +61,22 @@ namespace BrewMonster int slotIndex = 0; #endif + +#if LICENSE_VERSION + + for (int j = 0; j < a_pSCS.Count; j++) + { +#else int nSlots = Mathf.Min(a_pSCS[i].GetShortcutNum(), AUIImagePictureList.Count); for (int j = 0; j < nSlots; j++) - { + { +#endif #if LICENSE_VERSION pCell = AUIImagePictureList[slotIndex]; -#endif +#else pCell = AUIImagePictureList[j]; +#endif pSC = a_pSCS[i].GetShortcut(j); pClock = pCell.GetClockIcon(); pClock.SetProgressRange(0, 1); @@ -331,7 +338,7 @@ namespace BrewMonster if (pSC != null) { #if LICENSE_VERSION - slotIndex++; + slotIndex++; #endif if (pCell.GetDataPtr() == pSC) {