Skip to content
Permalink
Browse files

Fix build for < C++11 since last commit

Build broke since last commit 479f389 for compilers not supporting C++11.
Pre C++11, the constructor of std::ifstream only allows C like strings.
  • Loading branch information
est31 committed Apr 17, 2015
1 parent 479f389 commit b318c4712c1b84e2c3d71396095ea0f3df0d209d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/mg_schematic.cpp
@@ -345,7 +345,7 @@ bool Schematic::loadSchematicFromFile(const std::string &filename,
INodeDefManager *ndef, StringMap *replace_names,
NodeResolveMethod resolve_method)
{
std::ifstream is(filename, std::ios_base::binary);
std::ifstream is(filename.c_str(), std::ios_base::binary);
if (!is.good()) {
errorstream << "Schematic::loadSchematicFile: unable to open file '"
<< filename << "'" << std::endl;

0 comments on commit b318c47

Please sign in to comment.