summaryrefslogtreecommitdiff
path: root/src/itemshortcut.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2007-12-05 20:20:25 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2007-12-05 20:20:25 +0000
commitd8539e4ccac014c306329cda2c8bed036a80af39 (patch)
tree2ba911e66c31102173f4df9cbac19049a7f45a4b /src/itemshortcut.cpp
parentc65678cd7016d56aa3f8360b7e8d36e275b8c90e (diff)
downloadmana-d8539e4ccac014c306329cda2c8bed036a80af39.tar.gz
mana-d8539e4ccac014c306329cda2c8bed036a80af39.tar.bz2
mana-d8539e4ccac014c306329cda2c8bed036a80af39.tar.xz
mana-d8539e4ccac014c306329cda2c8bed036a80af39.zip
Fix drawing of very high fringe tiles by keeping track of the maximum tile
height.
Diffstat (limited to 'src/itemshortcut.cpp')
-rw-r--r--src/itemshortcut.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/itemshortcut.cpp b/src/itemshortcut.cpp
index c212d506..931ce6f2 100644
--- a/src/itemshortcut.cpp
+++ b/src/itemshortcut.cpp
@@ -18,10 +18,12 @@
* along with The Mana World; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
+ * $Id$
*/
#include "itemshortcut.h"
+#include "item.h"
#include "localplayer.h"
#include "configuration.h"
@@ -51,7 +53,7 @@ void ItemShortcut::load()
if (itemId != -1)
{
- ItemPtr item = player_node->searchForItem(itemId);
+ Item* item = player_node->searchForItem(itemId);
if (item)
{
mItems[i] = item;