mirror of
https://github.com/godotengine/godot-visual-script.git
synced 2026-01-03 10:09:19 +03:00
Merge pull request #18291 from akien-mga/coverity-uninitialized-scalar-var
Fix Coverity reports of uninitialized scalar variable
This commit is contained in:
@@ -2028,6 +2028,7 @@ void VisualScriptInstance::create(const Ref<VisualScript> &p_script, Object *p_o
|
||||
function.flow_stack_size = 0;
|
||||
function.pass_stack_size = 0;
|
||||
function.node_count = 0;
|
||||
|
||||
Map<StringName, int> local_var_indices;
|
||||
|
||||
if (function.node < 0) {
|
||||
|
||||
@@ -374,12 +374,10 @@ class VisualScriptInstance : public ScriptInstance {
|
||||
int node;
|
||||
int max_stack;
|
||||
int trash_pos;
|
||||
int return_pos;
|
||||
int flow_stack_size;
|
||||
int pass_stack_size;
|
||||
int node_count;
|
||||
int argument_count;
|
||||
bool valid;
|
||||
};
|
||||
|
||||
Map<StringName, Function> functions;
|
||||
|
||||
Reference in New Issue
Block a user