Removed useless error print on bullet shapes
This commit is contained in:
parent
50c99370d2
commit
c507a4988d
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue