summaryrefslogtreecommitdiffstats
path: root/source/cWindow.cpp
diff options
context:
space:
mode:
authorlapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-01-01 19:45:28 +0100
committerlapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-01-01 19:45:28 +0100
commitac63775297cffb56b05702c0a3c6575f1bcd7d3b (patch)
tree9a5355be1d74a613a71ca43e2b85d53688eb6de2 /source/cWindow.cpp
parentFixed the numchunks console command. (diff)
downloadcuberite-ac63775297cffb56b05702c0a3c6575f1bcd7d3b.tar
cuberite-ac63775297cffb56b05702c0a3c6575f1bcd7d3b.tar.gz
cuberite-ac63775297cffb56b05702c0a3c6575f1bcd7d3b.tar.bz2
cuberite-ac63775297cffb56b05702c0a3c6575f1bcd7d3b.tar.lz
cuberite-ac63775297cffb56b05702c0a3c6575f1bcd7d3b.tar.xz
cuberite-ac63775297cffb56b05702c0a3c6575f1bcd7d3b.tar.zst
cuberite-ac63775297cffb56b05702c0a3c6575f1bcd7d3b.zip
Diffstat (limited to '')
-rw-r--r--source/cWindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/cWindow.cpp b/source/cWindow.cpp
index 02ee3c541..68c8d4142 100644
--- a/source/cWindow.cpp
+++ b/source/cWindow.cpp
@@ -48,7 +48,7 @@ cItem* cWindow::GetDraggingItem( cPlayer * a_Player /* = 0 */ )
{
if( m_bInventoryVisible && a_Player )
{
- cWindow* Window = a_Player->GetSurvivalInventory().GetWindow();
+ cWindow* Window = a_Player->GetInventory().GetWindow();
if( Window )
{
return Window->GetDraggingItem();
@@ -68,7 +68,7 @@ void cWindow::Clicked( cPacket_WindowClick* a_ClickPacket, cPlayer & a_Player )
if( m_bInventoryVisible )
{
- cWindow* Window = a_Player.GetSurvivalInventory().GetWindow();
+ cWindow* Window = a_Player.GetInventory().GetWindow();
if( Window )
{
m_DraggingItem = Window->GetDraggingItem();
@@ -170,7 +170,7 @@ void cWindow::Clicked( cPacket_WindowClick* a_ClickPacket, cPlayer & a_Player )
{
a_ClickPacket->m_WindowID = 0;
a_ClickPacket->m_SlotNum -= (short)(m_NumSlots - 9);
- cWindow* Window = a_Player.GetSurvivalInventory().GetWindow();
+ cWindow* Window = a_Player.GetInventory().GetWindow();
if( Window )
{
Window->Clicked( a_ClickPacket, a_Player );