mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-14 16:07:39 +00:00
Fix crash when trying to change to the current scene. Fixes #245
This commit is contained in:
parent
119c340a32
commit
64f9ffa032
@ -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