mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-15 16:58:01 +00:00
Merge pull request #251 from klusark/fixscene
Fix crash when trying to change to the current scene. Fixes #245
This commit is contained in:
commit
1f3ce4a319
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user