Fix setting vector returns not being marked as changed.
This commit is contained in:
parent
e293b643a3
commit
bfd6abfb6c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user