From 5f8496ca103fabb4cfc265d8d936e194129a17ef Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 30 Jan 2017 19:10:14 +0300 Subject: Clean buy dialog dungling pointer if buy dialog was destroyed. --- src/net/buysellhandler.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/net/buysellhandler.h') diff --git a/src/net/buysellhandler.h b/src/net/buysellhandler.h index 79cb60b6c..e6f66129c 100644 --- a/src/net/buysellhandler.h +++ b/src/net/buysellhandler.h @@ -25,6 +25,8 @@ #include "resources/item/shopitem.h" +class BuyDialog; + namespace Net { @@ -52,6 +54,9 @@ class BuySellHandler notfinal const int amount) const = 0; virtual void close() const = 0; + + virtual void cleanDialogReference(const BuyDialog *const dialog) + const = 0; }; } // namespace Net -- cgit v1.2.3-60-g2f50