Regression fix for CS:GO GivePlayerItem.

Regressed in https://github.com/alliedmodders/sourcemod/pull/1887
This commit is contained in:
Nick Hastings 2023-01-20 10:09:22 -05:00
parent 221d34f809
commit d5a26adc49

View File

@ -1033,7 +1033,7 @@ static cell_t CreateEntityByName(IPluginContext *pContext, const cell_t *params)
char *classname;
pContext->LocalToString(params[1], &classname);
#if SOURCE_ENGINE != SE_CSGO && SOURCE_ENGINE != SE_BLADE || SOURCE_ENGINE != SE_MCV
#if SOURCE_ENGINE != SE_CSGO && SOURCE_ENGINE != SE_BLADE && SOURCE_ENGINE != SE_MCV
CBaseEntity *pEntity = (CBaseEntity *)servertools->CreateEntityByName(classname);
#else
CBaseEntity *pEntity = (CBaseEntity *)servertools->CreateItemEntityByName(classname);