Don't break backwards compatibility with unmanaged forwards

Instead of adding new functions to `IForward`, we just allow NULL to be passed to `PushArray` and `PushString`.
This commit is contained in:
Peace-Maker
2017-08-25 23:23:50 +02:00
parent e609a33e6d
commit 7eef3948b1
4 changed files with 27 additions and 21 deletions
+2 -2
View File
@@ -580,7 +580,7 @@ static cell_t sm_CallPushNullVector(IPluginContext *pContext, const cell_t *para
}
else if (s_pForward)
{
err = s_pForward->PushNullVector();
err = s_pForward->PushArray(NULL, 3);
}
if (err)
@@ -621,7 +621,7 @@ static cell_t sm_CallPushNullString(IPluginContext *pContext, const cell_t *para
}
else if (s_pForward)
{
err = s_pForward->PushNullString();
err = s_pForward->PushString(NULL);
}
if (err)