summaryrefslogtreecommitdiff
path: root/modules/visual_script
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2017-07-22 01:15:55 -0300
committerGeorge Marques <george@gmarqu.es>2017-07-22 01:15:55 -0300
commiteffceee6ea3b1bcc185897b96cc30fb8d08e9599 (patch)
tree3897fa5faf183dc758ec952472c78a70c20a3ff5 /modules/visual_script
parent4fe6b2a6744c4852cd3fdf0bc7a3437f8a16645f (diff)
VS: Fix return value for user-defined functions
Diffstat (limited to 'modules/visual_script')
-rw-r--r--modules/visual_script/visual_script_flow_control.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/visual_script/visual_script_flow_control.cpp b/modules/visual_script/visual_script_flow_control.cpp
index 7074ac76c7..77f3111d94 100644
--- a/modules/visual_script/visual_script_flow_control.cpp
+++ b/modules/visual_script/visual_script_flow_control.cpp
@@ -29,9 +29,9 @@
/*************************************************************************/
#include "visual_script_flow_control.h"
-#include "project_settings.h"
#include "io/resource_loader.h"
#include "os/keyboard.h"
+#include "project_settings.h"
//////////////////////////////////////////
////////////////RETURN////////////////////
@@ -138,11 +138,11 @@ public:
if (with_value) {
*p_working_mem = *p_inputs[0];
+ return STEP_EXIT_FUNCTION_BIT;
} else {
*p_working_mem = Variant();
+ return 0;
}
-
- return 0;
}
};