diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-05-01 19:14:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-01 19:14:07 +0200 |
commit | de97339a2d66cc9e3bd9ab77dd4e0c5c6534a869 (patch) | |
tree | 90a5f1949ce557c33e5f97147d4021c96500dadd /modules/visual_script | |
parent | c9abe88110abdc51bf520cd9af95e59374f7c0cc (diff) | |
parent | bf7ca623a65f25cc4ac7a3ca0d6635331ec07c25 (diff) |
Merge pull request #18291 from akien-mga/coverity-uninitialized-scalar-var
Fix Coverity reports of uninitialized scalar variable
Diffstat (limited to 'modules/visual_script')
-rw-r--r-- | modules/visual_script/visual_script.cpp | 1 | ||||
-rw-r--r-- | modules/visual_script/visual_script.h | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/modules/visual_script/visual_script.cpp b/modules/visual_script/visual_script.cpp index ef680547ca..03bc4c114a 100644 --- a/modules/visual_script/visual_script.cpp +++ b/modules/visual_script/visual_script.cpp @@ -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) { diff --git a/modules/visual_script/visual_script.h b/modules/visual_script/visual_script.h index 69bb522173..dad9c68312 100644 --- a/modules/visual_script/visual_script.h +++ b/modules/visual_script/visual_script.h @@ -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; |