From b0d20b7fb559763d12e76aaca8a7878ac1a64634 Mon Sep 17 00:00:00 2001 From: Luis Michaelis Date: Tue, 5 Dec 2023 15:42:59 +0100 Subject: [PATCH] fix(Archive): missing include --- include/zenkit/Archive.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);