From 0da933a0146a0689546b21231e14f2dfc2bc14e8 Mon Sep 17 00:00:00 2001 From: Aki Date: Wed, 23 Feb 2022 23:36:37 +0100 Subject: Switched to use ContentBundle's GetText --- Stars45/CombatUnit.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Stars45/CombatUnit.cpp') diff --git a/Stars45/CombatUnit.cpp b/Stars45/CombatUnit.cpp index 6a25ab5..7d6d3df 100644 --- a/Stars45/CombatUnit.cpp +++ b/Stars45/CombatUnit.cpp @@ -19,6 +19,7 @@ #include "Ship.h" #include "Game.h" +#include "ContentBundle.h" // +----------------------------------------------------------------------+ #undef random @@ -88,7 +89,7 @@ CombatUnit::GetDescription() const static char desc[256]; if (!design) { - strcpy_s(desc, Game::GetInstance()->GetText("[unknown]").data()); + strcpy_s(desc, ContentBundle::GetInstance()->GetText("[unknown]").data()); } else if (count > 1) { @@ -103,7 +104,7 @@ CombatUnit::GetDescription() const if (dead_count > 0) { strcat_s(desc, " "); - strcat_s(desc, Game::GetInstance()->GetText("killed.in.action")); + strcat_s(desc, ContentBundle::GetInstance()->GetText("killed.in.action")); } } -- cgit v1.1