From 2972e0abc5ebc773ca17374aeabf5ad24dee67c0 Mon Sep 17 00:00:00 2001 From: Drifter Date: Fri, 24 May 2019 05:06:33 -0400 Subject: [PATCH] Fix incorrect casting of return --- vhook.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vhook.cpp b/vhook.cpp index 4adc3b6..e8fbbe8 100644 --- a/vhook.cpp +++ b/vhook.cpp @@ -737,7 +737,7 @@ SDKVector *Callback_vector(DHooksCallback *dg, void **argStack) { g_SHPtr->SetRes(MRES_SUPERCEDE); mres = MRES_SUPERCEDE; - *vec_result = **(SDKVector **)returnStruct->newResult; + *vec_result = *(SDKVector *)returnStruct->newResult; } else //Throw an error if no override was set {