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/Shield.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Stars45/Shield.cpp') diff --git a/Stars45/Shield.cpp b/Stars45/Shield.cpp index e330ba4..c287e7b 100644 --- a/Stars45/Shield.cpp +++ b/Stars45/Shield.cpp @@ -17,6 +17,7 @@ #include "WeaponDesign.h" #include "Game.h" +#include "ContentBundle.h" // +----------------------------------------------------------------------+ @@ -38,8 +39,8 @@ Shield::Shield(SUBTYPE shield_type) shield_cutoff(0.0f), shield_capacitor(false), shield_bubble(false), deflection_cost(1.0f), shield_curve(0.05f) { - name = Game::GetInstance()->GetText(shield_name[shield_type]); - abrv = Game::GetInstance()->GetText("sys.shield.abrv"); + name = ContentBundle::GetInstance()->GetText(shield_name[shield_type]); + abrv = ContentBundle::GetInstance()->GetText("sys.shield.abrv"); power_flags = POWER_WATTS | POWER_CRITICAL; energy = 0.0f; -- cgit v1.1