From 01e3326de8fc03cf9f61fd1b288cd4f16915484c Mon Sep 17 00:00:00 2001 From: Guillaume Melquiond Date: Mon, 13 Aug 2007 20:44:25 +0000 Subject: Implemented buy/sell handler. --- src/game-server/state.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/game-server/state.cpp') diff --git a/src/game-server/state.cpp b/src/game-server/state.cpp index 9262798f..f5dcf917 100644 --- a/src/game-server/state.cpp +++ b/src/game-server/state.cpp @@ -507,8 +507,7 @@ void GameState::remove(Thing *ptr) { if (ptr->getType() == OBJECT_CHARACTER) { - Character *ch = static_cast< Character * >(ptr); - if (Trade *t = ch->getTrading()) t->cancel(ch); + static_cast< Character * >(ptr)->cancelTransaction(); } MovingObject *obj = static_cast< MovingObject * >(ptr); -- cgit v1.2.3-60-g2f50