Make the meta engine pass the pointer to the detected version and not the whole ADGameDescription table.

svn-id: r42018
This commit is contained in:
Denis Kasak 2009-07-02 10:31:56 +00:00
parent d47ab6ae98
commit fed2281125

View File

@ -121,7 +121,7 @@ bool Draci::DraciEngine::hasFeature(EngineFeature f) const {
bool DraciMetaEngine::createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const {
if (desc) {
*engine = new Draci::DraciEngine(syst, Draci::gameDescriptions);
*engine = new Draci::DraciEngine(syst, desc);
}
return desc != 0;
}