File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ ScriptInstance *ECMAScript::instance_create(Object *p_this) {
56
56
instance->owner = p_this;
57
57
instance->binder = binder;
58
58
instance->ecma_object = ecma_instance;
59
+ instance->ecma_class = cls;
59
60
instance->owner ->set_script_instance (instance);
60
61
instances.insert (p_this);
61
62
return instance;
@@ -99,6 +100,7 @@ Error ECMAScript::reload(bool p_keep_state) {
99
100
} else {
100
101
#ifdef TOOLS_ENABLED
101
102
set_last_modified_time (FileAccess::get_modified_time (script_path));
103
+ p_keep_state = true ;
102
104
103
105
for (Set<Object *>::Element *E = instances.front (); E; E = E->next ()) {
104
106
Object *owner = E->get ();
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ ScriptLanguage *ECMAScriptInstance::get_language() {
64
64
ECMAScriptInstance::ECMAScriptInstance () {
65
65
owner = NULL ;
66
66
binder = NULL ;
67
- ecma_object. clear () ;
67
+ ecma_class = NULL ;
68
68
}
69
69
70
70
ECMAScriptInstance::~ECMAScriptInstance () {
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class ECMAScriptInstance : public ScriptInstance {
14
14
Ref<ECMAScript> script;
15
15
ECMAScriptGCHandler ecma_object;
16
16
ECMAScriptBinder *binder;
17
- ECMAClassInfo *ecma_class;
17
+ const ECMAClassInfo *ecma_class;
18
18
19
19
public:
20
20
virtual bool set (const StringName &p_name, const Variant &p_value);
You can’t perform that action at this time.
0 commit comments