summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorSimon Wenner <simon@wenner.ch>2018-10-04 00:58:37 +0200
committerRĂ©mi Verschelde <rverschelde@gmail.com>2018-10-04 18:16:04 +0200
commit10718b096100b61b9cfcf0e668af7b94f4bbe00a (patch)
tree2a13b871e87479809302e0329977d5514a605a88 /modules
parent3ca2afc09c7a945b8491d8a085203142b2562833 (diff)
Fix some cppcheck errors
cppcheck: fix broken pre-processor statement cppcheck: fix Uninitialized struct members in canvas editor plugin cppcheck: fix uninitialized struct member: method_api.is_virtual
Diffstat (limited to 'modules')
-rw-r--r--modules/gdnative/nativescript/api_generator.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdnative/nativescript/api_generator.cpp b/modules/gdnative/nativescript/api_generator.cpp
index 0983c12619..8c6dace847 100644
--- a/modules/gdnative/nativescript/api_generator.cpp
+++ b/modules/gdnative/nativescript/api_generator.cpp
@@ -292,6 +292,7 @@ List<ClassAPI> generate_c_api_classes() {
method_api.has_varargs = method_bind && method_bind->is_vararg();
// Method flags
+ method_api.is_virtual = false;
if (method_info.flags) {
const uint32_t flags = method_info.flags;
method_api.is_editor = flags & METHOD_FLAG_EDITOR;