summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorK. S. Ernest (iFire) Lee <ernest.lee@chibifire.com>2022-03-06 23:01:52 -0800
committerK. S. Ernest (iFire) Lee <ernest.lee@chibifire.com>2022-03-07 00:35:11 -0800
commit2eaadb1b52dbf9387c55f51f22c118291501da9f (patch)
tree6f9ea4afb1dc15cdc6813be28101429af4103197
parentffd64505c51cb9734ad68f52277c807a9b759338 (diff)
Restore building web platform by enclosing resolve_function_signature.
-rw-r--r--modules/gdscript/gdscript_analyzer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_analyzer.cpp b/modules/gdscript/gdscript_analyzer.cpp
index 547fd1cfd5..326720ce86 100644
--- a/modules/gdscript/gdscript_analyzer.cpp
+++ b/modules/gdscript/gdscript_analyzer.cpp
@@ -1154,7 +1154,7 @@ void GDScriptAnalyzer::resolve_function_signature(GDScriptParser::FunctionNode *
GDScriptParser::DataType return_type = resolve_datatype(p_function->return_type);
p_function->set_datatype(return_type);
-#ifdef DEBUG_ENABLED
+#ifdef TOOLS_ENABLED
// Check if the function signature matches the parent. If not it's an error since it breaks polymorphism.
// Not for the constructor which can vary in signature.
GDScriptParser::DataType base_type = parser->current_class->base_type;