fix polyhook crash
I tried to hook a member varialbe. well shit I mean it kinda has to have a similar name, doesn't it
This commit is contained in:
@@ -21,7 +21,7 @@ private:
|
||||
detTailRecursion;
|
||||
|
||||
template <typename T>
|
||||
bool hook(std::shared_ptr<PLH::Detour> det, void* func, void*& original, void* hook) {
|
||||
bool hook(std::shared_ptr<PLH::Detour> det, void* func, T& original, void* hook) {
|
||||
det->SetupHook((BYTE*)func, (BYTE*)hook);
|
||||
if (!det->Hook()) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user