summaryrefslogtreecommitdiffhomepage
path: root/StarsEx/WeaponDesign.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'StarsEx/WeaponDesign.cpp')
-rw-r--r--StarsEx/WeaponDesign.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/StarsEx/WeaponDesign.cpp b/StarsEx/WeaponDesign.cpp
index 3dd826d..ff26ec1 100644
--- a/StarsEx/WeaponDesign.cpp
+++ b/StarsEx/WeaponDesign.cpp
@@ -186,7 +186,7 @@ WeaponDesign::LoadDesign(const char* path, const char* filename, bool mod)
BYTE* block;
int blocklen = loader->LoadBuffer(filename, block, true);
- Parser parser(new BlockReader((const char*) block, blocklen));
+ Parser parser({reinterpret_cast<const char*>(block), blocklen});
Term* term = parser.ParseTerm();
if (!term) {