From 06b777fe4a84a6a996a61a47e24f99f853e01ebe Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Tue, 1 Aug 2023 23:30:21 +0800 Subject: [PATCH] Fix "a number is required" error when printing RID (cherry picked from commit 35f28407d9368b47f440a772b60d863b9e5faef5) --- scene/2d/tile_map.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scene/2d/tile_map.cpp b/scene/2d/tile_map.cpp index 5ea751f089a..3d78e708a9a 100644 --- a/scene/2d/tile_map.cpp +++ b/scene/2d/tile_map.cpp @@ -2894,12 +2894,12 @@ HashMap *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]; }