Skip to content

Commit

Permalink
fix(Archive): missing include
Browse files Browse the repository at this point in the history
  • Loading branch information
lmichaelis committed Dec 5, 2023
1 parent fed97b0 commit b0d20b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/zenkit/Archive.hh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

#include <memory>
#include <string>
#include <unordered_map>
#include <variant>

namespace phoenix {
Expand Down Expand Up @@ -153,7 +154,7 @@ namespace zenkit {
throw ParserError {"ReadArchive", "Read unexcected object!"};
}

return std::reinterpret_pointer_cast<T>(std::move(obj));
return std::shared_ptr<T>(obj, reinterpret_cast<T*>(obj.get()));
}

std::shared_ptr<Object> read_object(GameVersion version);
Expand Down

0 comments on commit b0d20b7

Please sign in to comment.