diff options
| author | Wilson E. Alvarez | 2017-08-22 13:01:57 -0400 |
|---|---|---|
| committer | Wilson E. Alvarez | 2017-08-22 13:01:57 -0400 |
| commit | baa94a375858e80bf9424fd895e3384edb4e114c (patch) | |
| tree | 32e9f1313232443d02943ee164c55ce8924894c5 /modules/gdscript/gd_function.h | |
| parent | 294e912a843cde241f9abf619f5d40df9ef6ef9f (diff) | |
| download | godot-baa94a375858e80bf9424fd895e3384edb4e114c.tar.gz godot-baa94a375858e80bf9424fd895e3384edb4e114c.tar.zst godot-baa94a375858e80bf9424fd895e3384edb4e114c.zip | |
Diffstat (limited to 'modules/gdscript/gd_function.h')
| -rw-r--r-- | modules/gdscript/gd_function.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/gdscript/gd_function.h b/modules/gdscript/gd_function.h index 6d20b1977..661de0acc 100644 --- a/modules/gdscript/gd_function.h +++ b/modules/gdscript/gd_function.h @@ -210,8 +210,9 @@ public: #ifdef TOOLS_ENABLED ERR_FAIL_INDEX_V(p_idx, arg_names.size(), StringName()); return arg_names[p_idx]; -#endif +#else return StringName(); +#endif } Variant get_default_argument(int p_idx) const { ERR_FAIL_INDEX_V(p_idx, default_arguments.size(), Variant()); |
