summaryrefslogtreecommitdiff
path: root/src/gui/shortcutcontainer.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-27 20:49:55 +0200
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-27 20:49:55 +0200
commit04ca1f61bfde0f8853f478ec1b196bfc1fb9889e (patch)
treead15eaf04604ae5465c4c1f864c17f769ae8c421 /src/gui/shortcutcontainer.h
parent55ee3f8a67132b6f6542b21e69d9ccab064256ca (diff)
downloadmana-04ca1f61bfde0f8853f478ec1b196bfc1fb9889e.tar.gz
mana-04ca1f61bfde0f8853f478ec1b196bfc1fb9889e.tar.bz2
mana-04ca1f61bfde0f8853f478ec1b196bfc1fb9889e.tar.xz
mana-04ca1f61bfde0f8853f478ec1b196bfc1fb9889e.zip
Fixed first item in inventory showing up in arrow slot
Index 0 is now a valid index, namely the first item in the inventory. I forgot to change this line to use -1.
Diffstat (limited to 'src/gui/shortcutcontainer.h')
-rw-r--r--src/gui/shortcutcontainer.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/shortcutcontainer.h b/src/gui/shortcutcontainer.h
index fff48423..906201be 100644
--- a/src/gui/shortcutcontainer.h
+++ b/src/gui/shortcutcontainer.h
@@ -74,13 +74,13 @@ class ShortcutContainer : public gcn::Widget,
*/
virtual void mouseReleased(gcn::MouseEvent &event) = 0;
- virtual int getMaxItems() const
+ int getMaxItems() const
{ return mMaxItems; }
- virtual int getBoxWidth() const
+ int getBoxWidth() const
{ return mBoxWidth; }
- virtual int getBoxHeight() const
+ int getBoxHeight() const
{ return mBoxHeight; }
protected: