From 5322d978519f9d5677d2096e1167439c84b23cd1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 25 Feb 2011 01:20:00 +0200 Subject: Add tabs to spells window. Now it 5 tabs. Also dont save to configs default cell items for different item containers. --- src/spellshortcut.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/spellshortcut.cpp') diff --git a/src/spellshortcut.cpp b/src/spellshortcut.cpp index 5f3da7c4d..89a82401e 100644 --- a/src/spellshortcut.cpp +++ b/src/spellshortcut.cpp @@ -48,7 +48,7 @@ SpellShortcut::~SpellShortcut() void SpellShortcut::load() { - for (int f = 0; f < SPELL_SHORTCUT_ITEMS; f ++) + for (int f = 0; f < SPELL_SHORTCUT_ITEMS * SPELL_SHORTCUT_TABS; f ++) mItems[f] = -1; if (!spellManager) @@ -58,7 +58,8 @@ void SpellShortcut::load() int k = 0; for (std::vector::const_iterator i = spells.begin(), - i_end = spells.end(); i != i_end && k < SPELL_SHORTCUT_ITEMS; ++i) + i_end = spells.end(); i != i_end + && k < SPELL_SHORTCUT_ITEMS * SPELL_SHORTCUT_TABS; ++i) { mItems[k++] = (*i)->getId(); } -- cgit v1.2.3-60-g2f50