From a844b073b43616699837cc2a048c4257363a25f9 Mon Sep 17 00:00:00 2001 From: falsycat Date: Mon, 14 Oct 2019 00:00:00 +0000 Subject: [PATCH] [fix] Fixed an issue that going back to TitleScene from SelectScene caused segfault. --- src/sj/SelectScene.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sj/SelectScene.d b/src/sj/SelectScene.d index 5686f0d..a12205a 100644 --- a/src/sj/SelectScene.d +++ b/src/sj/SelectScene.d @@ -79,7 +79,7 @@ class SelectScene : SceneInterface { } override SceneInterface Update(KeyInput input) { SceneInterface next_scene = this; - AbstractSceneState next_state; + AbstractSceneState next_state = status_; status_.Update(input).visit!( (SceneInterface scene) { next_scene = scene; },