From 53bcb5fd2f680d9a3be9f56e5fab420d83746b00 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 8 Feb 2016 23:28:11 +0300 Subject: Fix small performance issues. --- src/gui/windows/shopwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/windows') 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; } -- cgit v1.2.3-70-g09d2