Skip to content

Commit

Permalink
Renamed the counter to 'j'
Browse files Browse the repository at this point in the history
  • Loading branch information
NiLSPACE committed Oct 15, 2014
1 parent ff5f575 commit e4ee718
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ItemGrid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ void cItemGrid::GenerateRandomLootWithBooks(const cLootProbab * a_LootProbabs, s
cEnchantments::AddItemEnchantmentWeights(Enchantments, E_ITEM_BOOK, 24 + Noise.IntNoise2DInt(a_Seed, TotalProbab) % 7);
int NumEnchantments = Noise.IntNoise3DInt(TotalProbab, Rnd, a_Seed) % 5; // The number of enchantments this book wil get.

for (int I = 0; I <= NumEnchantments; I++)
for (int j = 0; j <= NumEnchantments; j++)
{
cEnchantments Enchantment = cEnchantments::GenerateEnchantmentFromVector(Enchantments, Noise.IntNoise2DInt(NumEnchantments, i));
CurrentLoot.m_Enchantments.AddFromString(Enchantment.ToString());
Expand Down

0 comments on commit e4ee718

Please sign in to comment.