From ff38d3f529c04bfa4e53dfd3603f834fce7746d1 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Wed, 4 Apr 2007 09:25:53 +0000 Subject: Corrected spelling of 'prize'. --- src/game.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/game.cpp b/src/game.cpp index ddd1266c..d8235384 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -307,7 +307,6 @@ bool saveScreenshot(SDL_Surface *screenshot) // Search for an unused screenshot name std::stringstream filename; - std::stringstream chatlogentry; std::fstream testExists; bool found = false; @@ -325,14 +324,14 @@ bool saveScreenshot(SDL_Surface *screenshot) if (ImageWriter::writePNG(screenshot, filename.str())) { + std::stringstream chatlogentry; chatlogentry << "Screenshot saved to " << filename.str().c_str(); chatWindow->chatLog(chatlogentry.str(), BY_SERVER); return true; } else { - chatlogentry << "Saving screenshot failed!"; - chatWindow->chatLog(chatlogentry.str(), BY_SERVER); + chatWindow->chatLog("Saving screenshot failed!", BY_SERVER); return false; } } -- cgit v1.2.3-70-g09d2