Skip to content

Commit 6514fb6

Browse files
authored
1 parent 65433c0 commit 6514fb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UnityResolve.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class UnityResolve final {
140140
auto GetValue(void* obj, const std::string& name) -> RType { return *reinterpret_cast<RType*>(reinterpret_cast<uintptr_t>(obj) + Get<Field>(name)->offset); }
141141

142142
template <typename RType>
143-
auto SetValue(void* obj, const std::string& name, RType value) -> void { return *reinterpret_cast<RType*>(reinterpret_cast<uintptr_t>(obj) + Get<Field>(name)->offset) = value; }
143+
auto SetValue(void* obj, const std::string& name, RType value) -> void { *reinterpret_cast<RType*>(reinterpret_cast<uintptr_t>(obj) + Get<Field>(name)->offset) = value; }
144144

145145
// UnityType::CsType*
146146
[[nodiscard]] auto GetType() -> void* {

0 commit comments

Comments
 (0)