1
0

Suggestions

This commit is contained in:
Tiger Wang
2014-06-04 18:59:56 +01:00
parent 3278a403b5
commit 74cd4f5521
3 changed files with 10 additions and 6 deletions

View File

@@ -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);