Fix setting return vector.

This commit is contained in:
Drifter 2019-04-21 06:00:01 -04:00
parent 0c4ec7922f
commit e54dd120bc

View File

@ -698,7 +698,7 @@ SDKVector *Callback_vector(DHooksCallback *dg, void **argStack)
{
if(returnStruct->isChanged)
{
*vec_result = **(SDKVector **)returnStruct->newResult;
*vec_result = *(SDKVector *)returnStruct->newResult;
}
else //Throw an error if no override was set
{
@ -720,7 +720,7 @@ SDKVector *Callback_vector(DHooksCallback *dg, void **argStack)
{
g_SHPtr->SetRes(MRES_OVERRIDE);
mres = MRES_OVERRIDE;
*vec_result = **(SDKVector **)returnStruct->newResult;
*vec_result = *(SDKVector *)returnStruct->newResult;
}
else //Throw an error if no override was set
{