summaryrefslogtreecommitdiffstats
path: root/src/UI/Window.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-06-04 19:59:56 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-06-04 19:59:56 +0200
commit74cd4f552152f73d0d46cf726bcef472841e2da5 (patch)
tree9f5f4e9a856ede137d1668497a2612bad1433150 /src/UI/Window.cpp
parentRemoved use of auto (diff)
downloadcuberite-74cd4f552152f73d0d46cf726bcef472841e2da5.tar
cuberite-74cd4f552152f73d0d46cf726bcef472841e2da5.tar.gz
cuberite-74cd4f552152f73d0d46cf726bcef472841e2da5.tar.bz2
cuberite-74cd4f552152f73d0d46cf726bcef472841e2da5.tar.lz
cuberite-74cd4f552152f73d0d46cf726bcef472841e2da5.tar.xz
cuberite-74cd4f552152f73d0d46cf726bcef472841e2da5.tar.zst
cuberite-74cd4f552152f73d0d46cf726bcef472841e2da5.zip
Diffstat (limited to '')
-rw-r--r--src/UI/Window.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/UI/Window.cpp b/src/UI/Window.cpp
index 46885390b..c0e2cef64 100644
--- a/src/UI/Window.cpp
+++ b/src/UI/Window.cpp
@@ -283,7 +283,7 @@ void cWindow::OpenedByPlayer(cPlayer & a_Player)
bool cWindow::ClosedByPlayer(cPlayer & a_Player, bool a_CanRefuse)
{
// Checks whether the player is still holding an item
- if (a_Player.IsDraggingItem())
+ if (!a_Player.GetDraggingItem().IsEmpty())
{
LOGD("Player holds item! Dropping it...");
a_Player.TossHeldItem(a_Player.GetDraggingItem().m_ItemCount);