summaryrefslogtreecommitdiffhomepage
path: root/StarsEx/FormDef.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'StarsEx/FormDef.cpp')
-rw-r--r--StarsEx/FormDef.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/StarsEx/FormDef.cpp b/StarsEx/FormDef.cpp
index 7a521ff..53f8218 100644
--- a/StarsEx/FormDef.cpp
+++ b/StarsEx/FormDef.cpp
@@ -580,7 +580,7 @@ FormDef::Load(const char* fname)
if (!block || blocklen < 4)
return;
- Parser parser(new BlockReader((const char*) block, blocklen));
+ Parser parser({reinterpret_cast<const char*>(block), blocklen});
Term* term = parser.ParseTerm();
if (!term) {