mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 14:11:15 +00:00
Commit other files changed by file_format.sh
This commit is contained in:
parent
d8b65461e3
commit
9986439352
60 changed files with 73 additions and 73 deletions
|
|
@ -1963,7 +1963,7 @@ MonoObject *CSharpInstance::_internal_new_managed() {
|
|||
|
||||
bool die = _unreference_owner_unsafe();
|
||||
// Not ok for the owner to die here. If there is a situation where this can happen, it will be considered a bug.
|
||||
CRASH_COND(die == true);
|
||||
CRASH_COND(die);
|
||||
|
||||
owner = nullptr;
|
||||
|
||||
|
|
@ -2298,7 +2298,7 @@ CSharpInstance::~CSharpInstance() {
|
|||
// Unreference the owner here, before the new "instance binding" references it.
|
||||
// Otherwise, the unsafe reference debug checks will incorrectly detect a bug.
|
||||
bool die = _unreference_owner_unsafe();
|
||||
CRASH_COND(die == true); // `owner_keep_alive` holds a reference, so it can't die
|
||||
CRASH_COND(die); // `owner_keep_alive` holds a reference, so it can't die
|
||||
|
||||
void *data = owner->get_script_instance_binding(CSharpLanguage::get_singleton()->get_language_index());
|
||||
CRASH_COND(data == nullptr);
|
||||
|
|
@ -3136,7 +3136,7 @@ CSharpInstance *CSharpScript::_create_instance(const Variant **p_args, int p_arg
|
|||
|
||||
bool die = instance->_unreference_owner_unsafe();
|
||||
// Not ok for the owner to die here. If there is a situation where this can happen, it will be considered a bug.
|
||||
CRASH_COND(die == true);
|
||||
CRASH_COND(die);
|
||||
|
||||
p_owner->set_script_instance(nullptr);
|
||||
r_error.error = Callable::CallError::CALL_ERROR_INSTANCE_IS_NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue