diff options
Diffstat (limited to 'src/gui/inventory.cpp')
-rw-r--r-- | src/gui/inventory.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gui/inventory.cpp b/src/gui/inventory.cpp index dcaedc6f..c7f7aec8 100644 --- a/src/gui/inventory.cpp +++ b/src/gui/inventory.cpp @@ -55,12 +55,10 @@ void InventoryWindow::draw(gcn::Graphics *graphics) // Draw window graphics Window::draw(graphics); - BITMAP *target = ((Graphics*)graphics)->getTarget(); - for (int i = 0; i < INVENTORY_SIZE; i++) { if (items[i].quantity > 0) { if (items[i].id >= 501 && items[i].id <= 511) { - itemset->spriteset[items[i].id - 501]->draw(target, + itemset->spriteset[items[i].id - 501]->draw(screen, x + 24 * i, y + 26); } |