diff options
-rw-r--r-- | src/gui/inventorywindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp index 553313289..0075eb951 100644 --- a/src/gui/inventorywindow.cpp +++ b/src/gui/inventorywindow.cpp @@ -169,7 +169,8 @@ InventoryWindow::InventoryWindow(Inventory *const inventory): mSortDropDown->setSelected(0); StringVect tags = ItemDB::getTags(); - for (unsigned f = 0; f < tags.size(); f ++) + const size_t sz = tags.size(); + for (size_t f = 0; f < sz; f ++) mFilter->addButton(tags[f]); if (isMainInventory()) |