Skip to content

Commit

Permalink
fixed a crash on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Zorz42 committed Dec 9, 2021
1 parent d19ddc7 commit 544be66
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Client/game/inventory/clientInventory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,8 @@ void ClientInventory::render() {
renderItem(inventory->getItem(-1), getMouseX(), getMouseY());

hovered_recipe = -1;
behind_crafting_rect.render();

behind_crafting_rect.setHeight(INVENTORY_UI_SPACING + (int)inventory->getAvailableRecipes().size() * (BLOCK_WIDTH * 4 + INVENTORY_UI_SPACING * 2));
behind_crafting_rect.render();

for(int i = 0; i < inventory->getAvailableRecipes().size(); i++) {
int slot_x = 1.5 * INVENTORY_UI_SPACING;
Expand Down

0 comments on commit 544be66

Please sign in to comment.