diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-07-01 01:28:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-07-01 01:28:50 +0300 |
commit | 827dbd86772860f3b4dfa268c1e606ddbee82c0d (patch) | |
tree | cacc9f3939d3b8da03e4adb47250ae92a60690a6 /src/gui | |
parent | dde6e5de43ed2d50c02022042f68fa866779c15a (diff) | |
download | manaplus-827dbd86772860f3b4dfa268c1e606ddbee82c0d.tar.gz manaplus-827dbd86772860f3b4dfa268c1e606ddbee82c0d.tar.bz2 manaplus-827dbd86772860f3b4dfa268c1e606ddbee82c0d.tar.xz manaplus-827dbd86772860f3b4dfa268c1e606ddbee82c0d.zip |
improve size() usage in inventorywindow.
Diffstat (limited to 'src/gui')
-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()) |