From 588e88c7ee657fab36f5db2af6fe654cf2b478e4 Mon Sep 17 00:00:00 2001 From: Ruben Gonzalez Date: Wed, 4 Oct 2017 14:42:07 -0400 Subject: [PATCH] Fix build error. --- extensions/cstrike/natives.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/cstrike/natives.cpp b/extensions/cstrike/natives.cpp index 76cd66ee..626347cb 100644 --- a/extensions/cstrike/natives.cpp +++ b/extensions/cstrike/natives.cpp @@ -880,7 +880,7 @@ static cell_t CS_ItemDefIndexToID(IPluginContext *pContext, const cell_t *params static cell_t CS_WeaponIDToItemDefIndex(IPluginContext *pContext, const cell_t *params) { #if SOURCE_ENGINE == SE_CSGO - WeaponIDMap::Result res = g_mapWeaponIDToDefIdx.find((uint16_t)params[1]); + WeaponIDMap::Result res = g_mapWeaponIDToDefIdx.find((SMCSWeapon)params[1]); if (!res.found()) return pContext->ThrowNativeError("Invalid weapon id passed.");