diff options
Diffstat (limited to 'engines/sludge/fonttext.cpp')
-rw-r--r-- | engines/sludge/fonttext.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/engines/sludge/fonttext.cpp b/engines/sludge/fonttext.cpp index 664c843cb0..787e95e6f3 100644 --- a/engines/sludge/fonttext.cpp +++ b/engines/sludge/fonttext.cpp @@ -32,6 +32,14 @@ namespace Sludge { TextManager::TextManager() { + init(); +} + +TextManager::~TextManager() { + kill(); +} + +void TextManager::init() { _theFont.total = 0; _theFont.sprites = nullptr; @@ -43,8 +51,8 @@ TextManager::TextManager() { _fontTable.clear(); } -TextManager::~TextManager() { - g_sludge->_gfxMan->forgetSpriteBank(_theFont); +void TextManager::kill() { + GraphicsManager::forgetSpriteBank(_theFont); } bool TextManager::isInFont(const Common::String &theText) { |