summaryrefslogtreecommitdiff
path: root/src/gui/windows/shopwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-08 23:28:11 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-08 23:28:11 +0300
commit53bcb5fd2f680d9a3be9f56e5fab420d83746b00 (patch)
treecaf1b9d064994ad66c4532f6915f03435372fdd1 /src/gui/windows/shopwindow.cpp
parent3080545899d9eacacd527133763b0fe39ab8c896 (diff)
downloadmanaverse-53bcb5fd2f680d9a3be9f56e5fab420d83746b00.tar.gz
manaverse-53bcb5fd2f680d9a3be9f56e5fab420d83746b00.tar.bz2
manaverse-53bcb5fd2f680d9a3be9f56e5fab420d83746b00.tar.xz
manaverse-53bcb5fd2f680d9a3be9f56e5fab420d83746b00.zip
Fix small performance issues.
Diffstat (limited to 'src/gui/windows/shopwindow.cpp')
-rw-r--r--src/gui/windows/shopwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/windows/shopwindow.cpp b/src/gui/windows/shopwindow.cpp
index cf57312dd..b927273ef 100644
--- a/src/gui/windows/shopwindow.cpp
+++ b/src/gui/windows/shopwindow.cpp
@@ -1026,8 +1026,8 @@ bool ShopWindow::checkFloodCounter(int &counterTime)
counterTime = cur_time;
else if (counterTime + 10 > cur_time)
return false;
-
- counterTime = cur_time;
+ else
+ counterTime = cur_time;
return true;
}