From c6187f3dc7dd57aafe21cbb186681a0e47c49f53 Mon Sep 17 00:00:00 2001 From: Alejo <53284952+aleeperezz16@users.noreply.github.com> Date: Thu, 14 Oct 2021 10:10:16 -0300 Subject: [PATCH] mp_free_armor small fix (#685) --- regamedll/dlls/player.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/regamedll/dlls/player.cpp b/regamedll/dlls/player.cpp index 6a4b569a..6b1adfa6 100644 --- a/regamedll/dlls/player.cpp +++ b/regamedll/dlls/player.cpp @@ -10009,8 +10009,8 @@ void EXT_FUNC CBasePlayer::__API_HOOK(OnSpawnEquip)(bool addDefault, bool equipG { switch (static_cast((int)free_armor.value)) { - case ARMOR_KEVLAR: GiveNamedItem("item_kevlar"); break; - case ARMOR_VESTHELM: GiveNamedItem("item_assaultsuit"); break; + case ARMOR_KEVLAR: GiveNamedItemEx("item_kevlar"); break; + case ARMOR_VESTHELM: GiveNamedItemEx("item_assaultsuit"); break; } } #endif