mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Fix Mono and GDNative builds after changes to ObjectID
Issues caused by cf8c679a23
.
The Mono change is actually a bugfix (used the int instead of ObjectID
by mistake).
The GDNative change is a temporary revert until a more exhaustive approach
is taken to make 'godot_int' 64-bit, is confirmed wanted by GDNative users.
This commit is contained in:
parent
cf8c679a23
commit
09534e2922
4 changed files with 6 additions and 11 deletions
|
@ -162,11 +162,11 @@ void CSharpLanguage::finish() {
|
|||
|
||||
#ifdef DEBUG_ENABLED
|
||||
for (Map<ObjectID, int>::Element *E = unsafe_object_references.front(); E; E = E->next()) {
|
||||
const ObjectID &id = E->get();
|
||||
const ObjectID &id = E->key();
|
||||
Object *obj = ObjectDB::get_instance(id);
|
||||
|
||||
if (obj) {
|
||||
ERR_PRINT("Leaked unsafe reference to object: " + obj->get_class() + ":" + itos(id));
|
||||
ERR_PRINT("Leaked unsafe reference to object: " + obj->to_string());
|
||||
} else {
|
||||
ERR_PRINT("Leaked unsafe reference to deleted object: " + itos(id));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue