diff --git a/extensions/dhooks/dynhooks_sourcepawn.cpp b/extensions/dhooks/dynhooks_sourcepawn.cpp index 9f7057c3..dbb0abc7 100644 --- a/extensions/dhooks/dynhooks_sourcepawn.cpp +++ b/extensions/dhooks/dynhooks_sourcepawn.cpp @@ -385,7 +385,7 @@ ReturnAction_t HandleDetour(HookType_t hookType, CHook* pDetour) } else { if (pWrapper->int64_address) { std::int64_t addr = reinterpret_cast(thisAddr); - pWrapper->plugin_callback->PushArray(reinterpret_cast(&addr), 2); + pWrapper->plugin_callback->PushInt64(addr); } else { pWrapper->plugin_callback->PushCell((cell_t)thisAddr); } diff --git a/extensions/dhooks/vhook.cpp b/extensions/dhooks/vhook.cpp index 21b99e50..2f4074eb 100644 --- a/extensions/dhooks/vhook.cpp +++ b/extensions/dhooks/vhook.cpp @@ -512,7 +512,7 @@ void *Callback(DHooksCallback *dg, void **argStack) } else { if (dg->int64_address) { std::int64_t addr = reinterpret_cast(thisAddr); - dg->plugin_callback->PushArray(reinterpret_cast(&addr), 2); + dg->plugin_callback->PushInt64(addr); } else { dg->plugin_callback->PushCell((cell_t)thisAddr); } @@ -710,7 +710,7 @@ float Callback_float(DHooksCallback *dg, void **argStack) } else { if (dg->int64_address) { std::int64_t addr = reinterpret_cast(thisAddr); - dg->plugin_callback->PushArray(reinterpret_cast(&addr), 2); + dg->plugin_callback->PushInt64(addr); } else { dg->plugin_callback->PushCell((cell_t)thisAddr); } @@ -881,7 +881,7 @@ SDKVector *Callback_vector(DHooksCallback *dg, void **argStack) } else { if (dg->int64_address) { std::int64_t addr = reinterpret_cast(thisAddr); - dg->plugin_callback->PushArray(reinterpret_cast(&addr), 2); + dg->plugin_callback->PushInt64(addr); } else { dg->plugin_callback->PushCell((cell_t)thisAddr); } @@ -1049,7 +1049,7 @@ string_t *Callback_stringt(DHooksCallback *dg, void **argStack) } else { if (dg->int64_address) { std::int64_t addr = reinterpret_cast(thisAddr); - dg->plugin_callback->PushArray(reinterpret_cast(&addr), 2); + dg->plugin_callback->PushInt64(addr); } else { dg->plugin_callback->PushCell((cell_t)thisAddr); }