Update F4TProxyPuppet.cpp

This commit is contained in:
2026-06-05 13:32:06 +12:00
parent 65553a0c61
commit 7f1aa11281
+3 -2
View File
@@ -107,10 +107,11 @@ namespace F4T::ProxyPuppet
} }
REL::Relocation<std::uintptr_t> actorVtable{ RE::Actor::VTABLE[0] }; REL::Relocation<std::uintptr_t> actorVtable{ RE::Actor::VTABLE[0] };
const auto vtable = reinterpret_cast<std::uintptr_t*>(actorVtable.get());
const auto computeFeedback = reinterpret_cast<ComputeFeedbackFn>( const auto computeFeedback = reinterpret_cast<ComputeFeedbackFn>(
actorVtable.get()[kComputeFeedbackVtableIndex]); vtable[kComputeFeedbackVtableIndex]);
const auto updateFeedback = reinterpret_cast<UpdateFeedbackFn>( const auto updateFeedback = reinterpret_cast<UpdateFeedbackFn>(
actorVtable.get()[kUpdateFeedbackVtableIndex]); vtable[kUpdateFeedbackVtableIndex]);
if (!updateFeedback) { if (!updateFeedback) {
return false; return false;