summaryrefslogtreecommitdiff
path: root/Block.cpp
diff options
context:
space:
mode:
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] &&