diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-08-13 20:44:25 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-08-13 20:44:25 +0000 |
commit | 01e3326de8fc03cf9f61fd1b288cd4f16915484c (patch) | |
tree | 583a1be3466994767dad82a77fab21b85d9356a7 /src/game-server/state.cpp | |
parent | d95c2fbf8fc3fd45b03e27aa802f7886cd930a5e (diff) | |
download | manaserv-01e3326de8fc03cf9f61fd1b288cd4f16915484c.tar.gz manaserv-01e3326de8fc03cf9f61fd1b288cd4f16915484c.tar.bz2 manaserv-01e3326de8fc03cf9f61fd1b288cd4f16915484c.tar.xz manaserv-01e3326de8fc03cf9f61fd1b288cd4f16915484c.zip |
Implemented buy/sell handler.
Diffstat (limited to 'src/game-server/state.cpp')
-rw-r--r-- | src/game-server/state.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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); |