Fix build for ep1 and darkm.

This commit is contained in:
Nicholas Hastings
2015-07-02 15:22:33 -04:00
parent e0a83ff7b2
commit 1a5714c3ca
3 changed files with 9 additions and 0 deletions
+4
View File
@@ -2127,8 +2127,12 @@ 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
{