1
0
镜像自地址 https://github.com/luanti-org/luanti.git 已同步 2025-11-06 02:05:30 +01: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.
这个提交包含在:
est31
2015-04-17 02:29:50 +02:00
父节点 479f38973e
当前提交 b318c4712c

查看文件

@@ -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;