diff --git a/include/zenkit/Archive.hh b/include/zenkit/Archive.hh index da1c06bb..9dae0cb9 100644 --- a/include/zenkit/Archive.hh +++ b/include/zenkit/Archive.hh @@ -14,6 +14,7 @@ #include #include +#include #include namespace phoenix { @@ -153,7 +154,7 @@ namespace zenkit { throw ParserError {"ReadArchive", "Read unexcected object!"}; } - return std::reinterpret_pointer_cast(std::move(obj)); + return std::shared_ptr(obj, reinterpret_cast(obj.get())); } std::shared_ptr read_object(GameVersion version);