mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix build for < C++11 since last commit
Build broke since last commit 479f38973e
for compilers not supporting C++11.
Pre C++11, the constructor of std::ifstream only allows C like strings.
This commit is contained in:
parent
479f38973e
commit
b318c4712c
1 changed files with 1 additions and 1 deletions
|
@ -345,7 +345,7 @@ bool Schematic::loadSchematicFromFile(const std::string &filename,
|
||||||
INodeDefManager *ndef, StringMap *replace_names,
|
INodeDefManager *ndef, StringMap *replace_names,
|
||||||
NodeResolveMethod resolve_method)
|
NodeResolveMethod resolve_method)
|
||||||
{
|
{
|
||||||
std::ifstream is(filename, std::ios_base::binary);
|
std::ifstream is(filename.c_str(), std::ios_base::binary);
|
||||||
if (!is.good()) {
|
if (!is.good()) {
|
||||||
errorstream << "Schematic::loadSchematicFile: unable to open file '"
|
errorstream << "Schematic::loadSchematicFile: unable to open file '"
|
||||||
<< filename << "'" << std::endl;
|
<< filename << "'" << std::endl;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue