summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 929d828d9..352a6be44 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -541,8 +541,6 @@ bool Game::saveScreenshot(SDL_Surface *const screenshot,
// Search for an unused screenshot name
std::stringstream filename;
std::fstream testExists;
- bool found = false;
- static unsigned int screenshotCount = 0;
time_t rawtime;
char buffer [100];
@@ -567,6 +565,8 @@ bool Game::saveScreenshot(SDL_Surface *const screenshot,
serverName.c_str(), buffer);
}
+ bool found = false;
+ static unsigned int screenshotCount = 0;
do
{
screenshotCount++;