1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

GDScript: Fix template_debug compilation with TOOLS/DEBUG macro mismatch

This commit is contained in:
Rémi Verschelde
2023-04-28 11:09:12 +02:00
parent 578ca94ef6
commit 7780926b25
2 changed files with 3 additions and 3 deletions

View File

@@ -741,7 +741,7 @@ Error GDScript::reload(bool p_keep_state) {
bool can_run = ScriptServer::is_scripting_enabled() || is_tool();
#ifdef DEBUG_ENABLED
#ifdef TOOLS_ENABLED
if (p_keep_state && can_run && is_valid()) {
_save_old_static_data();
}
@@ -818,7 +818,7 @@ Error GDScript::reload(bool p_keep_state) {
}
}
#ifdef DEBUG_ENABLED
#ifdef TOOLS_ENABLED
if (can_run && p_keep_state) {
_restore_old_static_data();
}