mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-28 08:48:48 +02:00
#630, ofstream doesn't have constructor from std::string on older compilers.
This commit is contained in:
parent
d715510bee
commit
4434a73651
@ -701,7 +701,8 @@ Font * Graphics::loadFont( const char * name )
|
||||
if(len < 10000 || magic != 589598 && magic != 589599)
|
||||
{
|
||||
tlog1 << "Suspicious font file (length " << len <<", fname " << name << "), logging to suspicious_" << name << ".fnt\n";
|
||||
std::ofstream o("suspicious_" + std::string(name) + ".fnt");
|
||||
std::string suspFName = "suspicious_" + std::string(name) + ".fnt";
|
||||
std::ofstream o(suspFName.c_str());
|
||||
o.write((const char*)hlp, len);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user