From 9568a305878d0c035e027c1ed6c9a24147a0adea Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Wed, 18 Feb 2009 06:57:16 +0000 Subject: Centralize current_npc cleanup --- src/net/buysellhandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/net/buysellhandler.cpp') diff --git a/src/net/buysellhandler.cpp b/src/net/buysellhandler.cpp index 67c79ec4..a2442d70 100644 --- a/src/net/buysellhandler.cpp +++ b/src/net/buysellhandler.cpp @@ -107,7 +107,7 @@ void BuySellHandler::handleMessage(MessageIn *msg) } else { chatWindow->chatLog(_("Nothing to sell"), BY_SERVER); - current_npc = 0; + if (current_npc) current_npc->handleDeath(); } break; -- cgit v1.2.3-70-g09d2