From f7a64167fc7ac41d7d99f0a7652bef446555f77b Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Wed, 9 Jul 2014 19:25:45 -0400 Subject: [PATCH] Fix Dota 2 build. --- core/smn_entities.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/smn_entities.cpp b/core/smn_entities.cpp index a7cd46460..5d14a9a1c 100644 --- a/core/smn_entities.cpp +++ b/core/smn_entities.cpp @@ -1564,9 +1564,11 @@ static cell_t GetEntPropEnt(IPluginContext *pContext, const cell_t *params) case FIELD_CLASSPTR: type = PropEnt_Entity; break; +#if SOURCE_ENGINE != SE_DOTA case FIELD_EDICT: type = PropEnt_Edict; break; +#endif default: return pContext->ThrowNativeError("Data field %s is not an entity nor edict (%d)", prop, @@ -1657,11 +1659,13 @@ static cell_t SetEntPropEnt(IPluginContext *pContext, const cell_t *params) case FIELD_CLASSPTR: type = PropEnt_Entity; break; +#if SOURCE_ENGINE != SE_DOTA case FIELD_EDICT: type = PropEnt_Edict; if (!pEdict) return pContext->ThrowNativeError("Edict %d is invalid", params[1]); break; +#endif default: return pContext->ThrowNativeError("Data field %s is not an entity nor edict (%d)", prop,