summaryrefslogtreecommitdiff
path: root/src/gui/shopwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/shopwindow.h')
-rw-r--r--src/gui/shopwindow.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/shopwindow.h b/src/gui/shopwindow.h
index bad4a0a4e..e07803225 100644
--- a/src/gui/shopwindow.h
+++ b/src/gui/shopwindow.h
@@ -95,7 +95,7 @@ class ShopWindow : public Window, public gcn::ActionListener,
* Returns true if any instances exist.
*/
static bool isActive()
- { return instances.size() > 0; }
+ { return !instances.empty(); }
void setItemSelected(int id)
{ mSelectedItem = id; updateButtonsAndLabels(); }