mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	Fix missing call to std::ostringstream::str
This commit is contained in:
		@@ -2782,14 +2782,14 @@ void Client::makeScreenshot(IrrlichtDevice *device)
 | 
			
		||||
			snprintf(filename, sizeof(filename), "%s" DIR_DELIM "screenshot_%u.png",
 | 
			
		||||
				 g_settings->get("screenshot_path").c_str(),
 | 
			
		||||
				 device->getTimer()->getRealTime());
 | 
			
		||||
			std::stringstream sstr;
 | 
			
		||||
			std::ostringstream sstr;
 | 
			
		||||
			if (driver->writeImageToFile(image, filename)) {
 | 
			
		||||
				sstr << "Saved screenshot to '" << filename << "'";
 | 
			
		||||
			} else {
 | 
			
		||||
				sstr << "Failed to save screenshot '" << filename << "'";
 | 
			
		||||
			}
 | 
			
		||||
			m_chat_queue.push_back(narrow_to_wide(sstr.str()));
 | 
			
		||||
			infostream << sstr << std::endl;
 | 
			
		||||
			infostream << sstr.str() << std::endl;
 | 
			
		||||
			image->drop();
 | 
			
		||||
		}
 | 
			
		||||
		raw_image->drop();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user