diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-03-09 03:21:39 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-03-09 03:21:39 +0000 |
commit | 7593d6c71e2331c3e43c732db60ad03ee4d5385d (patch) | |
tree | 3ad242a957b6a500319d7bdae15149c553521ee4 /src/floor_item.cpp | |
parent | 81cf85e9ec1d37dc6e8dd9883f42bb50dace9135 (diff) | |
download | mana-7593d6c71e2331c3e43c732db60ad03ee4d5385d.tar.gz mana-7593d6c71e2331c3e43c732db60ad03ee4d5385d.tar.bz2 mana-7593d6c71e2331c3e43c732db60ad03ee4d5385d.tar.xz mana-7593d6c71e2331c3e43c732db60ad03ee4d5385d.zip |
Added Spriteset::get() and Spriteset::size() to hide the member vector and remove the weird mySpriteset->spriteset stuff.
Diffstat (limited to 'src/floor_item.cpp')
-rw-r--r-- | src/floor_item.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/floor_item.cpp b/src/floor_item.cpp index 775a9cb8..4573d646 100644 --- a/src/floor_item.cpp +++ b/src/floor_item.cpp @@ -44,7 +44,7 @@ FloorItem::FloorItem(unsigned int id, mMap(map) { // Retrieve item image using a global itemset and itemDb (alternative?) - mImage = itemset->spriteset[itemDb->getItemInfo(itemId)->getImage() - 1]; + mImage = itemset->get(itemDb->getItemInfo(itemId)->getImage() - 1); // Add ourselves to the map mSpriteIterator = mMap->addSprite(this); |