From d5a26adc493d2dfe1919ab1ff619bfb0d404ee84 Mon Sep 17 00:00:00 2001 From: Nick Hastings Date: Fri, 20 Jan 2023 10:09:22 -0500 Subject: [PATCH] Regression fix for CS:GO GivePlayerItem. Regressed in https://github.com/alliedmodders/sourcemod/pull/1887 --- extensions/sdktools/vnatives.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/sdktools/vnatives.cpp b/extensions/sdktools/vnatives.cpp index 3f16755d..d2f1738d 100644 --- a/extensions/sdktools/vnatives.cpp +++ b/extensions/sdktools/vnatives.cpp @@ -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);