diff options
Diffstat (limited to 'src/gui/npcdialog.cpp')
-rw-r--r-- | src/gui/npcdialog.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gui/npcdialog.cpp b/src/gui/npcdialog.cpp index 64101c0c..57c736d0 100644 --- a/src/gui/npcdialog.cpp +++ b/src/gui/npcdialog.cpp @@ -110,6 +110,16 @@ NpcDialog::NpcDialog() loadWindowState(); } +NpcDialog::~NpcDialog() +{ + // These might not actually be in the layout, so lets be safe + delete mItemList; + delete mTextField; + delete mIntField; + delete mResetButton; + delete mPlusButton; + delete mMinusButton; +} void NpcDialog::setText(const std::string &text) { @@ -282,6 +292,8 @@ void NpcDialog::buildLayout() { clearLayout(); + add(mGrip); + if (mActionState != NPC_ACTION_INPUT) { if (mActionState == NPC_ACTION_WAIT) |