diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mg_schematic.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mg_schematic.cpp b/src/mg_schematic.cpp index 2b9c7faeb..cb31f640c 100644 --- a/src/mg_schematic.cpp +++ b/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; |