Fix setting return vector.
This commit is contained in:
parent
0c4ec7922f
commit
e54dd120bc
@ -698,7 +698,7 @@ SDKVector *Callback_vector(DHooksCallback *dg, void **argStack)
|
|||||||
{
|
{
|
||||||
if(returnStruct->isChanged)
|
if(returnStruct->isChanged)
|
||||||
{
|
{
|
||||||
*vec_result = **(SDKVector **)returnStruct->newResult;
|
*vec_result = *(SDKVector *)returnStruct->newResult;
|
||||||
}
|
}
|
||||||
else //Throw an error if no override was set
|
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);
|
g_SHPtr->SetRes(MRES_OVERRIDE);
|
||||||
mres = MRES_OVERRIDE;
|
mres = MRES_OVERRIDE;
|
||||||
*vec_result = **(SDKVector **)returnStruct->newResult;
|
*vec_result = *(SDKVector *)returnStruct->newResult;
|
||||||
}
|
}
|
||||||
else //Throw an error if no override was set
|
else //Throw an error if no override was set
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user