summaryrefslogtreecommitdiff
path: root/src/net/buysellhandler.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-01-30 19:10:14 +0300
committerAndrei Karas <akaras@inbox.ru>2017-01-30 20:39:49 +0300
commit5f8496ca103fabb4cfc265d8d936e194129a17ef (patch)
tree60314fbebf3773e1a6df6d32a9fbd67b4a482071 /src/net/buysellhandler.h
parent6fa245a1cb5037118ba19a084f219abcc00f6294 (diff)
downloadManaVerse-5f8496ca103fabb4cfc265d8d936e194129a17ef.tar.gz
ManaVerse-5f8496ca103fabb4cfc265d8d936e194129a17ef.tar.bz2
ManaVerse-5f8496ca103fabb4cfc265d8d936e194129a17ef.tar.xz
ManaVerse-5f8496ca103fabb4cfc265d8d936e194129a17ef.zip
Clean buy dialog dungling pointer if buy dialog was destroyed.
Diffstat (limited to 'src/net/buysellhandler.h')
-rw-r--r--src/net/buysellhandler.h5
1 files changed, 5 insertions, 0 deletions
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