I'm working on integrating my current game engine with the irrKlang sound engine, and am dealing with a persistent error. Simplified:
fsCore.h
class fsEngine
{
public:
static fsEngine *getInstance();
static void release();
;
private:
static fsEngine *instance;
static fsBool exists;
irrklang::ISoundEngine *soundEngine;
};
fsCore.cpp
#include "fsCore.h"
void fsEngine::release()
{
exists = false;
delete instance;
soundEngine->drop(); //C2227
};
The engine is being declared correctly, and the singleton is performing as expected. Any ideas?