From cf8c679a23b21d6c6f29cba6a54eaa2eed88bf92 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Wed, 12 Feb 2020 14:24:06 -0300 Subject: ObjectID converted to a structure, fixes many bugs where used incorrectly as 32 bits. --- servers/physics/body_sw.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'servers/physics/body_sw.h') diff --git a/servers/physics/body_sw.h b/servers/physics/body_sw.h index ee4dd0b310..d712b09878 100644 --- a/servers/physics/body_sw.h +++ b/servers/physics/body_sw.h @@ -451,7 +451,7 @@ public: return body->contacts[p_contact_idx].collider_pos; } virtual ObjectID get_contact_collider_id(int p_contact_idx) const { - ERR_FAIL_INDEX_V(p_contact_idx, body->contact_count, 0); + ERR_FAIL_INDEX_V(p_contact_idx, body->contact_count, ObjectID()); return body->contacts[p_contact_idx].collider_instance_id; } virtual int get_contact_collider_shape(int p_contact_idx) const { -- cgit v1.2.3