diff options
| author | Caldfir | 2012-04-17 20:32:30 -0700 |
|---|---|---|
| committer | Caldfir | 2012-04-17 20:32:30 -0700 |
| commit | e0b93a5e334f61060dc02212c079f2bfdf7a5471 (patch) | |
| tree | 0c6eb497058faef8857846d93a3bbb9fa7a6408b /Block.cpp | |
| parent | 24e538eeec0c966be264f47174b329f086ce51f2 (diff) | |
| parent | 15e3b726c3e68d2985aecd95d2a33bf4550caaa1 (diff) | |
| download | stonesense-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.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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] &&
|
