summaryrefslogtreecommitdiff
path: root/Block.cpp
diff options
context:
space:
mode:
authorCaldfir2012-04-17 20:32:30 -0700
committerCaldfir2012-04-17 20:32:30 -0700
commite0b93a5e334f61060dc02212c079f2bfdf7a5471 (patch)
tree0c6eb497058faef8857846d93a3bbb9fa7a6408b /Block.cpp
parent24e538eeec0c966be264f47174b329f086ce51f2 (diff)
parent15e3b726c3e68d2985aecd95d2a33bf4550caaa1 (diff)
downloadstonesense-e0b93a5e334f61060dc02212c079f2bfdf7a5471.tar.gz
stonesense-e0b93a5e334f61060dc02212c079f2bfdf7a5471.tar.bz2
stonesense-e0b93a5e334f61060dc02212c079f2bfdf7a5471.tar.xz
Merge https://github.com/peterix/stonesense
Diffstat (limited to 'Block.cpp')
-rw-r--r--Block.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Block.cpp b/Block.cpp
index 1abf4bc..334fc5a 100644
--- a/Block.cpp
+++ b/Block.cpp
@@ -294,10 +294,10 @@ void Block::Draw()
{
if(
contentLoader->itemConfigs[Item.item.type] &&
- (Item.item.type < contentLoader->itemConfigs[Item.item.type]->subItems.size()) &&
- contentLoader->itemConfigs[Item.item.type]->subItems[Item.item.type])
+ (Item.item.index < contentLoader->itemConfigs[Item.item.type]->subItems.size()) &&
+ contentLoader->itemConfigs[Item.item.type]->subItems[Item.item.index])
{
- contentLoader->itemConfigs[Item.item.type]->subItems[Item.item.type]->sprite.draw_world(x, y, z, this);
+ contentLoader->itemConfigs[Item.item.type]->subItems[Item.item.index]->sprite.draw_world(x, y, z, this);
}
else if (
contentLoader->itemConfigs[Item.item.type] &&