changed to dynamic allocation of smush player

svn-id: r5063
This commit is contained in:
Paweł Kołodziejski 2002-10-01 18:28:26 +00:00
parent bff43de73a
commit c49e3e3eb8

View File

@ -2719,9 +2719,11 @@ void Scumm::o6_miscOps()
speed = 71;
else
speed = 1000 / _insaneFlag;
ScummRenderer sr(this, speed);
SmushPlayer sp(&sr);
sp.play((char*)getStringAddressVar(VAR_VIDEONAME), getGameDataPath());
ScummRenderer * sr = new ScummRenderer(this, speed);
SmushPlayer * sp = new SmushPlayer(sr);
sp->play((char*)getStringAddressVar(VAR_VIDEONAME), getGameDataPath());
delete sp;
delete sr;
}
break;
case 7: