summaryrefslogtreecommitdiff
path: root/src/mg_schematic.cpp
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2015-04-17 02:29:50 +0200
committerest31 <MTest31@outlook.com>2015-04-17 02:34:02 +0200
commitb318c4712c1b84e2c3d71396095ea0f3df0d209d (patch)
tree444bfdac1e28c15f2de4873978055718a217cb40 /src/mg_schematic.cpp
parent479f38973e13680d6a39d9c2a7f29fd330b67d41 (diff)
downloadminetest-b318c4712c1b84e2c3d71396095ea0f3df0d209d.tar.gz
minetest-b318c4712c1b84e2c3d71396095ea0f3df0d209d.tar.bz2
minetest-b318c4712c1b84e2c3d71396095ea0f3df0d209d.zip
Fix build for < C++11 since last commit
Build broke since last commit 479f38973e13680d6a39d9c2a7f29fd330b67d41 for compilers not supporting C++11. Pre C++11, the constructor of std::ifstream only allows C like strings.
Diffstat (limited to 'src/mg_schematic.cpp')
-rw-r--r--src/mg_schematic.cpp2
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;