Fix crash when trying to change to the current scene. Fixes #245

This commit is contained in:
Joel Teichroeb 2011-06-17 17:11:08 -07:00
parent 119c340a32
commit 64f9ffa032

View File

@ -1477,6 +1477,8 @@ void GrimEngine::setScene(const char *name) {
}
void GrimEngine::setScene(Scene *scene) {
if (scene == _currScene)
return;
Scene *lastScene = _currScene;
_currScene = scene;
_currScene->setSoundParameters(20, 127);