mirror of
https://github.com/godotengine/godot.git
synced 2024-11-26 14:13:10 +00:00
Removed useless error print on bullet shapes
This commit is contained in:
parent
50c99370d2
commit
c507a4988d
@ -77,7 +77,7 @@ void ShapeBullet::add_owner(ShapeOwnerBullet *p_owner) {
|
||||
|
||||
void ShapeBullet::remove_owner(ShapeOwnerBullet *p_owner, bool p_permanentlyFromThisBody) {
|
||||
Map<ShapeOwnerBullet *, int>::Element *E = owners.find(p_owner);
|
||||
ERR_FAIL_COND(!E);
|
||||
if (!E) return;
|
||||
E->get()--;
|
||||
if (p_permanentlyFromThisBody || 0 >= E->get()) {
|
||||
owners.erase(E);
|
||||
|
Loading…
Reference in New Issue
Block a user