Skip to content

Commit

Permalink
Merge pull request #80122 from timothyqiu/rid-id
Browse files Browse the repository at this point in the history
Fix "a number is required" error when printing RID
  • Loading branch information
YuriSizov committed Aug 1, 2023
2 parents f37d192 + 35f2840 commit 9fe9922
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scene/2d/tile_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3276,7 +3276,7 @@ Vector2i TileMap::get_coords_for_body_rid(RID p_physics_body) {
return layer->get_coords_for_body_rid(p_physics_body);
}
}
ERR_FAIL_V_MSG(Vector2i(), vformat("No tiles for the given body RID %d.", p_physics_body));
ERR_FAIL_V_MSG(Vector2i(), vformat("No tiles for the given body RID %d.", p_physics_body.get_id()));
}

int TileMap::get_layer_for_body_rid(RID p_physics_body) {
Expand All @@ -3285,7 +3285,7 @@ int TileMap::get_layer_for_body_rid(RID p_physics_body) {
return i;
}
}
ERR_FAIL_V_MSG(-1, vformat("No tiles for the given body RID %d.", p_physics_body));
ERR_FAIL_V_MSG(-1, vformat("No tiles for the given body RID %d.", p_physics_body.get_id()));
}

void TileMap::fix_invalid_tiles() {
Expand Down

0 comments on commit 9fe9922

Please sign in to comment.