Skip to content

Commit

Permalink
Cambio CBasePlayerWeapon::Spawn
Browse files Browse the repository at this point in the history
  • Loading branch information
aleeperezz16 committed Jan 4, 2024
1 parent 0141284 commit 699ab58
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions regamedll/dlls/weapons.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 699ab58

Please sign in to comment.