diff --git a/regamedll/dlls/weapons.cpp b/regamedll/dlls/weapons.cpp index ad8de9d25..30a61ae2e 100644 --- a/regamedll/dlls/weapons.cpp +++ b/regamedll/dlls/weapons.cpp @@ -1223,10 +1223,9 @@ void CBasePlayerItem::AttachToPlayer(CBasePlayer *pPlayer) void CBasePlayerWeapon::Spawn() { #ifdef REGAMEDLL_API - ItemInfo info; - Q_memset(&info, 0, sizeof(info)); + ItemInfo &info = m_ItemInfoArray[m_iId]; - if (GetItemInfo(&info)) { + if (info.iId) { CSPlayerItem()->SetItemInfo(&info); } #endif