Fixed remote inspector for tool scripts

Fixes #29506
This commit is contained in:
PouleyKetchoupp
2019-10-28 18:18:43 +01:00
parent 7d710a745e
commit 3a26a0eaa7
3 changed files with 19 additions and 2 deletions

View File

@ -49,6 +49,14 @@ bool RefPtr::operator==(const RefPtr &p_other) const {
return *ref == *ref_other;
}
bool RefPtr::operator!=(const RefPtr &p_other) const {
Ref<Reference> *ref = reinterpret_cast<Ref<Reference> *>(&data[0]);
Ref<Reference> *ref_other = reinterpret_cast<Ref<Reference> *>(const_cast<char *>(&p_other.data[0]));
return *ref != *ref_other;
}
RefPtr::RefPtr(const RefPtr &p_other) {
memnew_placement(&data[0], Ref<Reference>);