Add string_t SetEntPropString support for ep1 (fixes #1287)

This commit is contained in:
Nick Hastings
2020-06-25 21:20:56 -04:00
parent 2ebbf2774b
commit 4c8103a4e1
4 changed files with 71 additions and 13 deletions
-4
View File
@@ -2380,12 +2380,8 @@ static cell_t SetEntPropString(IPluginContext *pContext, const cell_t *params)
if (bIsStringIndex)
{
#if SOURCE_ENGINE < SE_ORANGEBOX
return pContext->ThrowNativeError("Cannot set %s. Setting string_t values not supported on this game.", prop);
#else
*(string_t *) ((intptr_t) pEntity + offset) = g_HL2.AllocPooledString(src);
len = strlen(src);
#endif
}
else
{