summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-06-19 16:44:39 +0200
committerGitHub <noreply@github.com>2022-06-19 16:44:39 +0200
commitc2f4e734e17981802cc59f6bf237044dd733b2b4 (patch)
treeb88d3c49401e1fb7774413e8e899e1fcd6bca13f /editor
parent958254ec3eeb5d55888b5bcbf121d2f55b88a9de (diff)
parentc4404e2918d026773c56a65996ca66c6cb5fb115 (diff)
Merge pull request #62217 from georgjz/issue62206
Move definition of const int ERROR_CODE to be reachable by all functi…
Diffstat (limited to 'editor')
-rw-r--r--editor/project_converter_3_to_4.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/project_converter_3_to_4.cpp b/editor/project_converter_3_to_4.cpp
index 515d09c3fc..dfe40f9d4f 100644
--- a/editor/project_converter_3_to_4.cpp
+++ b/editor/project_converter_3_to_4.cpp
@@ -32,14 +32,16 @@
#include "modules/modules_enabled.gen.h"
+const int ERROR_CODE = 77;
+
#ifdef MODULE_REGEX_ENABLED
+
#include "modules/regex/regex.h"
#include "core/os/time.h"
#include "core/templates/hash_map.h"
#include "core/templates/list.h"
-const int ERROR_CODE = 77;
const int CONVERSION_MAX_FILE_SIZE = 1024 * 1024 * 4; // 4 MB
static const char *enum_renames[][2] = {