Skip to content

Commit

Permalink
Reduce the number of items from root
Browse files Browse the repository at this point in the history
  • Loading branch information
gaejuck committed May 25, 2022
1 parent 20d7d4d commit 7d3bf9e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions addons/sourcemod/scripting/royale/loot/loot.sp
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,10 @@ public void Loot_BreakCrate(int entity, int crate, LootCrate loot)
if (0 < client <= MaxClients && IsClientInGame(client))
class = TF2_GetPlayerClass(client);

LootTable lootTable[3];
bool found[3];
LootTable lootTable[2];
bool found[2];

for(int i = 0; i < 3; i++)
for(int i = 0; i < 2; i++)
{
do
{
Expand Down Expand Up @@ -256,7 +256,7 @@ public void Loot_BreakCrate(int entity, int crate, LootCrate loot)
float origin[3];
WorldSpaceCenter(crate, origin);

for(int i = 0; i < 3; i++)
for(int i = 0; i < 2; i++)
{
//Start function call to loot creation function
Call_StartFunction(null, lootTable[i].callback_create);
Expand Down

0 comments on commit 7d3bf9e

Please sign in to comment.