aboutsummaryrefslogtreecommitdiff
path: root/extension/src/openvic-extension/singletons/LoadLocalisation.cpp
diff options
context:
space:
mode:
author George L. Albany <Megacake1234@gmail.com>2023-12-07 10:05:18 +0100
committer GitHub <noreply@github.com>2023-12-07 10:05:18 +0100
commita6952efba078e49d6555b0586230986a2cb7ed40 (patch)
treedc9a4d1a107902f0b4de21eeb503c4d901379ce0 /extension/src/openvic-extension/singletons/LoadLocalisation.cpp
parente01d332f407420db84fbfd207f18c3fec1c1b6a3 (diff)
parent291022316a4a3c742be92abd0d2b94256df60143 (diff)
Merge pull request #167 from Spartan322/update/godot4.2-stable
Diffstat (limited to 'extension/src/openvic-extension/singletons/LoadLocalisation.cpp')
-rw-r--r--extension/src/openvic-extension/singletons/LoadLocalisation.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/extension/src/openvic-extension/singletons/LoadLocalisation.cpp b/extension/src/openvic-extension/singletons/LoadLocalisation.cpp
index 96c67e8..3da8bc8 100644
--- a/extension/src/openvic-extension/singletons/LoadLocalisation.cpp
+++ b/extension/src/openvic-extension/singletons/LoadLocalisation.cpp
@@ -135,7 +135,6 @@ Error LoadLocalisation::load_localisation_dir(String const& dir_path) const {
return err;
}
bool LoadLocalisation::add_message(std::string_view key, Dataloader::locale_t locale, std::string_view localisation) {
- static Ref<Translation> translations[Dataloader::_LocaleCount] = { nullptr };
Ref<Translation>& translation = translations[locale];
if (translation.is_null()) {
translation = _singleton->_get_translation(Dataloader::locale_names[locale]);