diff options
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) |