mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Initialize class/struct variables with default values in modules/
This commit is contained in:
parent
57e2822a05
commit
f7209b459b
100 changed files with 533 additions and 772 deletions
|
@ -77,14 +77,14 @@ int GDScriptFunction::get_max_stack_size() const {
|
|||
}
|
||||
|
||||
struct _GDFKC {
|
||||
int order;
|
||||
int order = 0;
|
||||
List<int> pos;
|
||||
};
|
||||
|
||||
struct _GDFKCS {
|
||||
int order;
|
||||
int order = 0;
|
||||
StringName id;
|
||||
int pos;
|
||||
int pos = 0;
|
||||
|
||||
bool operator<(const _GDFKCS &p_r) const {
|
||||
return order < p_r.order;
|
||||
|
@ -294,7 +294,6 @@ void GDScriptFunctionState::_bind_methods() {
|
|||
GDScriptFunctionState::GDScriptFunctionState() :
|
||||
scripts_list(this),
|
||||
instances_list(this) {
|
||||
function = nullptr;
|
||||
}
|
||||
|
||||
GDScriptFunctionState::~GDScriptFunctionState() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue