Merge pull request #285 from alliedmodders/frames
Implement a new stack and error handling model for the SourcePawn VM.
This commit is contained in:
@@ -290,8 +290,7 @@ DataStatus DecodeValveParam(IPluginContext *pContext,
|
||||
case Valve_Vector:
|
||||
{
|
||||
cell_t *addr;
|
||||
int err;
|
||||
err = pContext->LocalToPhysAddr(param, &addr);
|
||||
pContext->LocalToPhysAddr(param, &addr);
|
||||
|
||||
unsigned char *mem = (unsigned char *)buffer;
|
||||
if (data->type == PassType_Basic)
|
||||
@@ -317,12 +316,6 @@ DataStatus DecodeValveParam(IPluginContext *pContext,
|
||||
}
|
||||
}
|
||||
|
||||
if (err != SP_ERROR_NONE)
|
||||
{
|
||||
pContext->ThrowNativeErrorEx(err, "Could not read plugin data");
|
||||
return Data_Fail;
|
||||
}
|
||||
|
||||
/* Use placement new to initialize the object cleanly
|
||||
* This has no destructor so we don't need to do
|
||||
* DestroyValveParam() or something :]
|
||||
|
||||
Reference in New Issue
Block a user