diff options
Diffstat (limited to 'src/game-server/mapcomposite.cpp')
-rw-r--r-- | src/game-server/mapcomposite.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game-server/mapcomposite.cpp b/src/game-server/mapcomposite.cpp index f1b545ec..bb7093b2 100644 --- a/src/game-server/mapcomposite.cpp +++ b/src/game-server/mapcomposite.cpp @@ -802,7 +802,8 @@ void MapComposite::initializeContent() if (destMap && destX && destY) { Entity *entity = new Entity(OBJECT_OTHER, this); - WarpAction *action = new WarpAction(destMap, destX, destY); + const Point warpTarget(destX, destY); + WarpAction *action = new WarpAction(destMap, warpTarget); entity->addComponent( new TriggerAreaComponent(object->getBounds(), action, false)); |