diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-02-18 06:57:16 +0000 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-02-18 06:57:16 +0000 |
commit | 9568a305878d0c035e027c1ed6c9a24147a0adea (patch) | |
tree | ca6f2d1d61114f11057938c654ec004042412f1f /src/gui/sell.cpp | |
parent | a0edd2e04b263faa13f6fbfbb81dd7c64520e584 (diff) | |
download | mana-9568a305878d0c035e027c1ed6c9a24147a0adea.tar.gz mana-9568a305878d0c035e027c1ed6c9a24147a0adea.tar.bz2 mana-9568a305878d0c035e027c1ed6c9a24147a0adea.tar.xz mana-9568a305878d0c035e027c1ed6c9a24147a0adea.zip |
Centralize current_npc cleanup
Diffstat (limited to 'src/gui/sell.cpp')
-rw-r--r-- | src/gui/sell.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/sell.cpp b/src/gui/sell.cpp index 1d7cb52f..dad6af21 100644 --- a/src/gui/sell.cpp +++ b/src/gui/sell.cpp @@ -131,7 +131,7 @@ void SellDialog::action(const gcn::ActionEvent &event) if (event.getId() == "quit") { setVisible(false); - current_npc = 0; + if (current_npc) current_npc->handleDeath(); return; } |