aboutsummaryrefslogtreecommitdiff
path: root/engines/cge2/cge2.cpp
diff options
context:
space:
mode:
authoruruk2014-05-12 22:24:21 +0200
committeruruk2014-05-12 22:24:21 +0200
commit49d78527922f65c400056f0b4f98c26ee9d3a9c5 (patch)
tree892284c1a293a7d4ca89a41655bd3c10aec7ba59 /engines/cge2/cge2.cpp
parent89bece4b420f90c1fd3adc6b63fe05a9815f5957 (diff)
downloadscummvm-rg350-49d78527922f65c400056f0b4f98c26ee9d3a9c5.tar.gz
scummvm-rg350-49d78527922f65c400056f0b4f98c26ee9d3a9c5.tar.bz2
scummvm-rg350-49d78527922f65c400056f0b4f98c26ee9d3a9c5.zip
CGE2: Add Spare.
Diffstat (limited to 'engines/cge2/cge2.cpp')
-rw-r--r--engines/cge2/cge2.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/cge2/cge2.cpp b/engines/cge2/cge2.cpp
index 986c616b65..c9fb590400 100644
--- a/engines/cge2/cge2.cpp
+++ b/engines/cge2/cge2.cpp
@@ -34,6 +34,7 @@
#include "cge2/text.h"
#include "cge2/hero.h"
#include "cge2/general.h"
+#include "cge2/spare.h"
namespace CGE2 {
@@ -49,6 +50,7 @@ CGE2Engine::CGE2Engine(OSystem *syst, const ADGameDescription *gameDescription)
for (int i = 0; i < 2; i++)
_heroTab[i] = nullptr;
_eye = nullptr;
+ _spare = nullptr;
_quitFlag = false;
_bitmapPalette = nullptr;
@@ -69,6 +71,7 @@ void CGE2Engine::init() {
for (int i = 0; i < 2; i++)
_heroTab[i] = new HeroTab(this);
_eye = new V3D();
+ _spare = new Spare(this);
}
void CGE2Engine::deinit() {
@@ -82,6 +85,7 @@ void CGE2Engine::deinit() {
for (int i = 0; i < 2; i++)
delete _heroTab[i];
delete _eye;
+ delete _spare;
}
bool CGE2Engine::hasFeature(EngineFeature f) const {