summaryrefslogtreecommitdiffstats
path: root/src/UI/SlotArea.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-10-21 14:20:06 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-10-21 14:20:06 +0200
commit5089f04cf67dfc3598ff8b714b452a66093625b0 (patch)
treed989589ba1f0dfca8d9e91e489e5e0e9176d0ed3 /src/UI/SlotArea.cpp
parentEn masse NULL -> nullptr replace (diff)
downloadcuberite-5089f04cf67dfc3598ff8b714b452a66093625b0.tar
cuberite-5089f04cf67dfc3598ff8b714b452a66093625b0.tar.gz
cuberite-5089f04cf67dfc3598ff8b714b452a66093625b0.tar.bz2
cuberite-5089f04cf67dfc3598ff8b714b452a66093625b0.tar.lz
cuberite-5089f04cf67dfc3598ff8b714b452a66093625b0.tar.xz
cuberite-5089f04cf67dfc3598ff8b714b452a66093625b0.tar.zst
cuberite-5089f04cf67dfc3598ff8b714b452a66093625b0.zip
Diffstat (limited to 'src/UI/SlotArea.cpp')
-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 9113ec343..f5c409e6c 100644
--- a/src/UI/SlotArea.cpp
+++ b/src/UI/SlotArea.cpp
@@ -2321,8 +2321,8 @@ cItem * cSlotAreaTemporary::GetPlayerSlots(cPlayer & a_Player)
if (itr == m_Items.end())
{
return nullptr;
- }
- return &(itr->second[0]);
+ }
+ return itr->second.data();
}