Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client/hud.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/hud.cc b/src/client/hud.cc
index b7e2c43..c42431c 100644
--- a/src/client/hud.cc
+++ b/src/client/hud.cc
@@ -197,7 +197,7 @@ void HUD::draw_target(core::Entity *entity, bool is_active_target)
const core::EntityControlable *ec = static_cast<core::EntityControlable *>(entity);
if (ec->owner()) {
render::Text::setcolor('B');
- render::Text::draw(cx - aux::text_length(entity->name()) * render::Text::fontwidth()*0.5f,
+ render::Text::draw(cx - aux::text_length(ec->owner()->name()) * render::Text::fontwidth()*0.5f,
cy - r - 4 - 2*render::Text::fontheight(), ec->owner()->name());
}
render::Text::setcolor('B');