summaryrefslogtreecommitdiffstats
path: root/src/UI/SlotArea.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2017-02-05 16:00:38 +0100
committerGitHub <noreply@github.com>2017-02-05 16:00:38 +0100
commitcbff1378fd78b6eaa59bad21759c8b89f1dab341 (patch)
treed992f37f36a15ff110d9d3e37df2426407522f54 /src/UI/SlotArea.cpp
parentMerge pull request #3565 from cuberite/luacheck (diff)
downloadcuberite-cbff1378fd78b6eaa59bad21759c8b89f1dab341.tar
cuberite-cbff1378fd78b6eaa59bad21759c8b89f1dab341.tar.gz
cuberite-cbff1378fd78b6eaa59bad21759c8b89f1dab341.tar.bz2
cuberite-cbff1378fd78b6eaa59bad21759c8b89f1dab341.tar.lz
cuberite-cbff1378fd78b6eaa59bad21759c8b89f1dab341.tar.xz
cuberite-cbff1378fd78b6eaa59bad21759c8b89f1dab341.tar.zst
cuberite-cbff1378fd78b6eaa59bad21759c8b89f1dab341.zip
Diffstat (limited to '')
-rw-r--r--src/UI/SlotArea.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/UI/SlotArea.cpp b/src/UI/SlotArea.cpp
index 52b849784..3a01d78ef 100644
--- a/src/UI/SlotArea.cpp
+++ b/src/UI/SlotArea.cpp
@@ -1576,7 +1576,7 @@ void cSlotAreaEnchanting::UpdateResult(cPlayer & a_Player)
if (cItem::IsEnchantable(Item.m_ItemType) && Item.m_Enchantments.IsEmpty())
{
- int Bookshelves = std::min(GetBookshelvesCount(a_Player.GetWorld()), 15);
+ int Bookshelves = std::min(GetBookshelvesCount(*a_Player.GetWorld()), 15);
cFastRandom Random;
int Base = (Random.GenerateRandomInteger(1, 8) + static_cast<int>(floor(static_cast<float>(Bookshelves / 2)) + Random.GenerateRandomInteger(0, Bookshelves)));
@@ -1600,7 +1600,7 @@ void cSlotAreaEnchanting::UpdateResult(cPlayer & a_Player)
-int cSlotAreaEnchanting::GetBookshelvesCount(cWorld * a_World)
+int cSlotAreaEnchanting::GetBookshelvesCount(cWorld & a_World)
{
int Bookshelves = 0;
cBlockArea Area;