From 7075a8926e64ddf9affcfb6859f9ae7c8130cfdb Mon Sep 17 00:00:00 2001 From: Asmodai Date: Tue, 30 Jan 2018 16:27:00 +0300 Subject: [PATCH] Fix #97 --- reapi/src/hook_callback.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reapi/src/hook_callback.cpp b/reapi/src/hook_callback.cpp index 9b5ee44..ad979a9 100644 --- a/reapi/src/hook_callback.cpp +++ b/reapi/src/hook_callback.cpp @@ -977,7 +977,7 @@ CGrenade *ThrowFlashbang(IReGameHook_ThrowFlashbang *chain, entvars_t *pevOwner, return indexOfPDataAmx(chain->callNext(PEV(_pevOwner), vecStartCopy, vecVelocityCopy, _time)); }; - return getPrivate(callForward(RG_ThrowHeGrenade, original, indexOfEdict(pevOwner), g_amxxapi.PrepareCellArrayA(reinterpret_cast(&vecStartCopy), 3, true), g_amxxapi.PrepareCellArrayA(reinterpret_cast(&vecVelocityCopy), 3, true), time)); + return getPrivate(callForward(RG_ThrowFlashbang, original, indexOfEdict(pevOwner), g_amxxapi.PrepareCellArrayA(reinterpret_cast(&vecStartCopy), 3, true), g_amxxapi.PrepareCellArrayA(reinterpret_cast(&vecVelocityCopy), 3, true), time)); } CGrenade *ThrowSmokeGrenade(IReGameHook_ThrowSmokeGrenade *chain, entvars_t *pevOwner, Vector &vecStart, Vector &vecVelocity, float time, unsigned short usEvent)