Fix setting return value for vector pointers.
This commit is contained in:
parent
fddaec1bd5
commit
f180db5427
@ -991,6 +991,8 @@ cell_t Native_SetReturnVector(IPluginContext *pContext, const cell_t *params)
|
|||||||
else if(returnStruct->type == ReturnType_VectorPtr)
|
else if(returnStruct->type == ReturnType_VectorPtr)
|
||||||
{
|
{
|
||||||
returnStruct->newResult = new SDKVector(sp_ctof(buffer[0]), sp_ctof(buffer[1]), sp_ctof(buffer[2]));
|
returnStruct->newResult = new SDKVector(sp_ctof(buffer[0]), sp_ctof(buffer[1]), sp_ctof(buffer[2]));
|
||||||
|
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
return pContext->ThrowNativeError("Return type is not a vector type");
|
return pContext->ThrowNativeError("Return type is not a vector type");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user