Skip to content

Commit

Permalink
Regression fix for CS:GO GivePlayerItem.
Browse files Browse the repository at this point in the history
Regressed in #1887
  • Loading branch information
psychonic committed Jan 20, 2023
1 parent 221d34f commit d5a26ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/sdktools/vnatives.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit d5a26ad

Please sign in to comment.