diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2014-10-15 15:31:06 +0200 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2014-10-15 15:31:06 +0200 |
commit | 57f8d2a55e2a20e255a64d46746eb3e58944ef6b (patch) | |
tree | 41430ff01ef3d537ed619bb640b2198d3e9b6731 /src/ItemGrid.cpp | |
parent | Renamed the counter to 'j' (diff) | |
download | cuberite-57f8d2a55e2a20e255a64d46746eb3e58944ef6b.tar cuberite-57f8d2a55e2a20e255a64d46746eb3e58944ef6b.tar.gz cuberite-57f8d2a55e2a20e255a64d46746eb3e58944ef6b.tar.bz2 cuberite-57f8d2a55e2a20e255a64d46746eb3e58944ef6b.tar.lz cuberite-57f8d2a55e2a20e255a64d46746eb3e58944ef6b.tar.xz cuberite-57f8d2a55e2a20e255a64d46746eb3e58944ef6b.tar.zst cuberite-57f8d2a55e2a20e255a64d46746eb3e58944ef6b.zip |
Diffstat (limited to '')
-rw-r--r-- | src/ItemGrid.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ItemGrid.cpp b/src/ItemGrid.cpp index 5621c00fd..cd77d52e1 100644 --- a/src/ItemGrid.cpp +++ b/src/ItemGrid.cpp @@ -647,7 +647,7 @@ void cItemGrid::GenerateRandomLootWithBooks(const cLootProbab * a_LootProbabs, s for (int j = 0; j <= NumEnchantments; j++) { cEnchantments Enchantment = cEnchantments::GenerateEnchantmentFromVector(Enchantments, Noise.IntNoise2DInt(NumEnchantments, i)); - CurrentLoot.m_Enchantments.AddFromString(Enchantment.ToString()); + CurrentLoot.m_Enchantments.Add(Enchantment); cEnchantments::RemoveEnchantmentWeightFromVector(Enchantments, Enchantment); } |