diff options
Diffstat (limited to 'src/gui/npcdialog.cpp')
-rw-r--r-- | src/gui/npcdialog.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/npcdialog.cpp b/src/gui/npcdialog.cpp index 3af0594f6..4fe5bf8ab 100644 --- a/src/gui/npcdialog.cpp +++ b/src/gui/npcdialog.cpp @@ -149,7 +149,6 @@ NpcDialog::~NpcDialog() mMinusButton = 0; instances.remove(this); - } void NpcDialog::setText(const std::string &text) @@ -418,7 +417,10 @@ void NpcDialog::closeAll() DialogList::iterator it_end = instances.end(); for (; it != it_end; ++it) - (*it)->close(); + { + if (*it) + (*it)->close(); + } } void NpcDialog::buildLayout() |