From 17f5fe7521ea045b3ce4bffda708b813359c5ee0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 24 Mar 2013 14:03:12 +0300 Subject: improve spellshortcut class. --- src/spellshortcut.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/spellshortcut.h') diff --git a/src/spellshortcut.h b/src/spellshortcut.h index 7393503dc..d5ce35e6e 100644 --- a/src/spellshortcut.h +++ b/src/spellshortcut.h @@ -27,6 +27,8 @@ class TextCommand; +const int SPELLS_SIZE = SPELL_SHORTCUT_ITEMS * SPELL_SHORTCUT_TABS; + /** * The class which keeps track of the item shortcuts. */ @@ -81,7 +83,7 @@ class SpellShortcut final { return mItems[index]; } private: - int mItems[SPELL_SHORTCUT_ITEMS * SPELL_SHORTCUT_TABS]; + int mItems[SPELLS_SIZE]; int mItemSelected; /**< The item held by cursor. */ }; -- cgit v1.2.3-60-g2f50