Fix language panel unlocking the camera

This commit is contained in:
Agent X 2024-06-05 20:40:57 -04:00
parent eaeaeb0f7f
commit c05c2a4d0e
1 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,7 @@
#include "pc/configfile.h"
#include "pc/os/os.h"
#include "pc/lua/smlua_hooks.h"
#include "game/bettercamera.h"
extern bool directory_sanity_check(struct dirent* dir, char* dirPath, char* outPath);
static bool sTrue = true;
@ -70,6 +71,7 @@ static void djui_panel_language_destroy(UNUSED struct DjuiBase* caller) {
if (configLanguage[0] == '\0') {
snprintf(configLanguage, MAX_CONFIG_STRING, "%s", "English");
}
newcam_init_settings();
gPanelLanguageOnStartup = false;
}