Fix free item slot detection

This commit is contained in:
Deathmax 2011-12-03 10:20:31 +08:00
parent 2020aaf5eb
commit a44618d6c6

View file

@ -131,7 +131,7 @@ namespace TShockAPI
bool flag = false;
if (RealPlayer)
{
for (int i = 0; i < 45; i++)
for (int i = 0; i < 40; i++) //41 is trash can, 42-45 is coins, 46-49 is ammo
{
if (TPlayer.inventory[i] == null || !TPlayer.inventory[i].active || TPlayer.inventory[i].name == "")
{