parent
14e1f36e61
commit
d8268aae30
9 changed files with 111 additions and 11 deletions
|
|
@ -1149,7 +1149,7 @@ TypedArray<Vector3i> GridMap::get_used_cells() const {
|
|||
TypedArray<Vector3i> GridMap::get_used_cells_by_item(int p_item) const {
|
||||
TypedArray<Vector3i> a;
|
||||
for (const KeyValue<IndexKey, Cell> &E : cell_map) {
|
||||
if (E.value.item == p_item) {
|
||||
if ((int)E.value.item == p_item) {
|
||||
Vector3i p(E.key.x, E.key.y, E.key.z);
|
||||
a.push_back(p);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue