Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2009-01-10 15:35:16 +0000
committerStijn Buys <ingar@osirion.org>2009-01-10 15:35:16 +0000
commitb8668c7a181ff082e5aeabffeaa413677da3e6f9 (patch)
treec257df6d1103bfc4534c73d465639c0adb38f1db
parent823765175958a75ab05573a06403883d96098864 (diff)
fix printing of wrong name when docking
-rw-r--r--src/game/base/planet.cc2
-rw-r--r--src/game/base/station.cc2
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());
}
}