From bfd6abfb6cc3e966affa4e2661cbcd39923ddd28 Mon Sep 17 00:00:00 2001 From: Dr!fter Date: Mon, 1 Aug 2016 16:35:27 -0400 Subject: [PATCH] Fix setting vector returns not being marked as changed. --- natives.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/natives.cpp b/natives.cpp index ac889ac..82d819b 100644 --- a/natives.cpp +++ b/natives.cpp @@ -985,12 +985,14 @@ cell_t Native_SetReturnVector(IPluginContext *pContext, const cell_t *params) if(returnStruct->type == ReturnType_Vector) { *(SDKVector *)returnStruct->newResult = SDKVector(sp_ctof(buffer[0]), sp_ctof(buffer[1]), sp_ctof(buffer[2])); + returnStruct->isChanged = true; return 1; } else if(returnStruct->type == ReturnType_VectorPtr) { returnStruct->newResult = new SDKVector(sp_ctof(buffer[0]), sp_ctof(buffer[1]), sp_ctof(buffer[2])); + returnStruct->isChanged = true; return 1; }