From bcd95847a435bb3aab90bdb3c2fdada6063efc2e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 22 Apr 2014 21:54:59 +0300 Subject: Fix crash if start trade with opened storage. --- src/gui/widgets/itemcontainer.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gui/widgets/itemcontainer.h') diff --git a/src/gui/widgets/itemcontainer.h b/src/gui/widgets/itemcontainer.h index f7bc44849..06e9fd459 100644 --- a/src/gui/widgets/itemcontainer.h +++ b/src/gui/widgets/itemcontainer.h @@ -131,6 +131,9 @@ class ItemContainer final : public Widget, bool getClickCount() const A_WARN_UNUSED { return mClicks; } + void unsetInventory() + { mInventory = nullptr; } + private: enum Direction { -- cgit v1.2.3-70-g09d2