mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Fix "a number is required" error when printing RID
(cherry picked from commit 35f28407d9
)
This commit is contained in:
parent
3df5907c87
commit
06b777fe4a
1 changed files with 2 additions and 2 deletions
|
@ -2894,12 +2894,12 @@ HashMap<Vector2i, TileMapQuadrant> *TileMap::get_quadrant_map(int p_layer) {
|
|||
}
|
||||
|
||||
Vector2i TileMap::get_coords_for_body_rid(RID p_physics_body) {
|
||||
ERR_FAIL_COND_V_MSG(!bodies_coords.has(p_physics_body), Vector2i(), vformat("No tiles for the given body RID %d.", p_physics_body));
|
||||
ERR_FAIL_COND_V_MSG(!bodies_coords.has(p_physics_body), Vector2i(), vformat("No tiles for the given body RID %d.", p_physics_body.get_id()));
|
||||
return bodies_coords[p_physics_body];
|
||||
}
|
||||
|
||||
int TileMap::get_layer_for_body_rid(RID p_physics_body) {
|
||||
ERR_FAIL_COND_V_MSG(!bodies_layers.has(p_physics_body), int(), vformat("No tiles for the given body RID %d.", p_physics_body));
|
||||
ERR_FAIL_COND_V_MSG(!bodies_layers.has(p_physics_body), int(), vformat("No tiles for the given body RID %d.", p_physics_body.get_id()));
|
||||
return bodies_layers[p_physics_body];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue