summaryrefslogtreecommitdiff
path: root/src/game-server/state.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game-server/state.cpp')
-rw-r--r--src/game-server/state.cpp3
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);