Skip to content

Commit

Permalink
Scene Language: Fix language selection when coming from the game browser
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghabry committed Feb 24, 2025
1 parent bd3a6d7 commit dcf2c67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scene_language.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include "player.h"
#include "baseui.h"
#include "output.h"
#include "scene_title.h"
#include "utils.h"
#include "scene_end.h"
#include "window_about.h"
Expand Down Expand Up @@ -182,8 +183,7 @@ void Scene_Language::ChangeLanguage(const std::string& lang_str) {
}

void Scene_Language::PopOrTitle() {
auto peek_scene = Scene::Peek();
if (!peek_scene || peek_scene->type == SceneType::Null || peek_scene->type == SceneType::Logo) {
if (!Find(Title)) {
Scene::Push(std::make_shared<Scene_Title>(), true);
} else {
Scene::Pop();
Expand Down

0 comments on commit dcf2c67

Please sign in to comment.