From b8668c7a181ff082e5aeabffeaa413677da3e6f9 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 10 Jan 2009 15:35:16 +0000 Subject: fix printing of wrong name when docking --- src/game/base/planet.cc | 2 +- src/game/base/station.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/base/planet.cc b/src/game/base/planet.cc index f63552c..3bf719e 100644 --- a/src/game/base/planet.cc +++ b/src/game/base/planet.cc @@ -55,7 +55,7 @@ void Planet::dock(core::Entity *entity) if (ship->owner() && ship->owner()->control() == ship) { ship->owner()->set_view(this); - ship->owner()->send("^BDocking at " + entity->name()); + ship->owner()->send("^BDocking at " + name()); } } diff --git a/src/game/base/station.cc b/src/game/base/station.cc index 59f51ac..0a959c3 100644 --- a/src/game/base/station.cc +++ b/src/game/base/station.cc @@ -50,7 +50,7 @@ void Station::dock(core::Entity *entity) if (ship->owner() && ship->owner()->control() == ship) { ship->owner()->set_view(this); - ship->owner()->send("^BDocking at " + entity->name()); + ship->owner()->send("^BDocking at " + name()); } } -- cgit v1.2.3