[fix] Fixed an issue that going back to TitleScene from SelectScene caused segfault.

This commit is contained in:
falsycat 2019-10-14 00:00:00 +00:00
parent 0480067cbb
commit a844b073b4

View File

@ -79,7 +79,7 @@ class SelectScene : SceneInterface {
} }
override SceneInterface Update(KeyInput input) { override SceneInterface Update(KeyInput input) {
SceneInterface next_scene = this; SceneInterface next_scene = this;
AbstractSceneState next_state; AbstractSceneState next_state = status_;
status_.Update(input).visit!( status_.Update(input).visit!(
(SceneInterface scene) { next_scene = scene; }, (SceneInterface scene) { next_scene = scene; },