Fix missing call to std::ostringstream::str

master
ShadowNinja 2014-12-12 16:31:29 -05:00
parent 19ccc27d37
commit 8af9d8b6ac
1 changed files with 2 additions and 2 deletions

View File

@ -2782,14 +2782,14 @@ void Client::makeScreenshot(IrrlichtDevice *device)
snprintf(filename, sizeof(filename), "%s" DIR_DELIM "screenshot_%u.png", snprintf(filename, sizeof(filename), "%s" DIR_DELIM "screenshot_%u.png",
g_settings->get("screenshot_path").c_str(), g_settings->get("screenshot_path").c_str(),
device->getTimer()->getRealTime()); device->getTimer()->getRealTime());
std::stringstream sstr; std::ostringstream sstr;
if (driver->writeImageToFile(image, filename)) { if (driver->writeImageToFile(image, filename)) {
sstr << "Saved screenshot to '" << filename << "'"; sstr << "Saved screenshot to '" << filename << "'";
} else { } else {
sstr << "Failed to save screenshot '" << filename << "'"; sstr << "Failed to save screenshot '" << filename << "'";
} }
m_chat_queue.push_back(narrow_to_wide(sstr.str())); m_chat_queue.push_back(narrow_to_wide(sstr.str()));
infostream << sstr << std::endl; infostream << sstr.str() << std::endl;
image->drop(); image->drop();
} }
raw_image->drop(); raw_image->drop();