Fix setting return value for vector pointers.

This commit is contained in:
Dr!fter 2016-08-01 16:03:18 -04:00
parent fddaec1bd5
commit f180db5427

View File

@ -991,6 +991,8 @@ cell_t Native_SetReturnVector(IPluginContext *pContext, const cell_t *params)
else if(returnStruct->type == ReturnType_VectorPtr)
{
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");
}