diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-01-31 00:42:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-01-31 00:42:50 +0300 |
commit | 6563977f8160b8f342af69bd978af180329bff94 (patch) | |
tree | 27fd720825c16d5575d921fcec0ae5524a14d675 /src/gui/windows/buydialog.cpp | |
parent | e7e6b4a67690502b67d78d6d42c66fd9b147a7ff (diff) | |
download | manaverse-6563977f8160b8f342af69bd978af180329bff94.tar.gz manaverse-6563977f8160b8f342af69bd978af180329bff94.tar.bz2 manaverse-6563977f8160b8f342af69bd978af180329bff94.tar.xz manaverse-6563977f8160b8f342af69bd978af180329bff94.zip |
Fix null pointer in unit tests.
Diffstat (limited to 'src/gui/windows/buydialog.cpp')
-rw-r--r-- | src/gui/windows/buydialog.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/windows/buydialog.cpp b/src/gui/windows/buydialog.cpp index ebf4ef8a4..df478891c 100644 --- a/src/gui/windows/buydialog.cpp +++ b/src/gui/windows/buydialog.cpp @@ -409,7 +409,8 @@ BuyDialog::~BuyDialog() { delete2(mShopItems); instances.remove(this); - buySellHandler->cleanDialogReference(this); + if (buySellHandler) + buySellHandler->cleanDialogReference(this); } void BuyDialog::setMoney(const int amount) |