summaryrefslogtreecommitdiffhomepage
path: root/StarsEx/MissionTemplate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'StarsEx/MissionTemplate.cpp')
-rw-r--r--StarsEx/MissionTemplate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/StarsEx/MissionTemplate.cpp b/StarsEx/MissionTemplate.cpp
index 55bec50..3e527a4 100644
--- a/StarsEx/MissionTemplate.cpp
+++ b/StarsEx/MissionTemplate.cpp
@@ -303,7 +303,7 @@ MissionTemplate::Load(const char* fname, const char* pname)
loader->SetDataPath(0);
loader->UseFileSystem(old_fs);
- Parser parser(new BlockReader((const char*) block));
+ Parser parser(starshatter::foundation::Reader{reinterpret_cast<const char*>(block)});
Term* term = parser.ParseTerm();