Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
aleeperezz16 committed Jan 5, 2024
1 parent 163cc62 commit ec11031
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion regamedll/dlls/weapons.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ int AddAmmoNameToAmmoRegistry(const char *szAmmoname)

#ifdef REGAMEDLL_ADD
int newIndex = -1;
for (int i = 0; i < MAX_AMMO_SLOTS; i++)
for (int i = 1; i < MAX_AMMO_SLOTS; i++)
{
if (!Q_stricmp(CBasePlayerItem::m_AmmoInfoArray[i].pszName, szAmmoname))
{
Expand All @@ -254,6 +254,7 @@ int AddAmmoNameToAmmoRegistry(const char *szAmmoname)
// New slot for the ammo it's the first one clear.
if (!CBasePlayerItem::m_AmmoInfoArray[i].iId && newIndex == -1)
{
CONSOLE_ECHO("Añadiendo ammo al indice %d", i);
newIndex = i;
}
}
Expand Down

0 comments on commit ec11031

Please sign in to comment.