aboutsummaryrefslogtreecommitdiff
path: root/engines/cge/cge.cpp
diff options
context:
space:
mode:
authorStrangerke2011-09-15 07:58:31 +0200
committerStrangerke2011-09-15 08:00:54 +0200
commitc99310820720714083b34d7d01080c54c977eb75 (patch)
treee7ebfefba735fd1934373817f63f678130726676 /engines/cge/cge.cpp
parentfc6fce22212fad5a9c8d15f0b8649eed3b0104b4 (diff)
downloadscummvm-rg350-c99310820720714083b34d7d01080c54c977eb75.tar.gz
scummvm-rg350-c99310820720714083b34d7d01080c54c977eb75.tar.bz2
scummvm-rg350-c99310820720714083b34d7d01080c54c977eb75.zip
CGE: Transform some static and globals into class members
Diffstat (limited to 'engines/cge/cge.cpp')
-rw-r--r--engines/cge/cge.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/cge/cge.cpp b/engines/cge/cge.cpp
index 11c722d32b..1297aea5e3 100644
--- a/engines/cge/cge.cpp
+++ b/engines/cge/cge.cpp
@@ -86,10 +86,10 @@ void CGEEngine::init() {
// Initialise classes that have static members
Bitmap::init();
- Talk::init();
Cluster::init(this);
// Initialise engine objects
+ _font = new Font(this, "CGE");
_text = new Text(this, "CGE");
_vga = new Vga();
_sys = new System(this);
@@ -141,7 +141,6 @@ void CGEEngine::init() {
void CGEEngine::deinit() {
// Call classes with static members to clear them up
- Talk::deinit();
Bitmap::deinit();
Cluster::init(this);
@@ -168,6 +167,7 @@ void CGEEngine::deinit() {
delete _eventManager;
delete _fx;
delete _sound;
+ delete _font;
delete _snail;
delete _snail_;
delete _hero;