我正在努力将我当前的游戏引擎与 irrKlang 声音引擎集成,并且正在处理一个持续性错误。简化:
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
};
引擎声明正确,单例按预期执行。有任何想法吗?