aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2026-02-13 10:38:24 +0000
committerGitHub <noreply@github.com>2026-02-13 10:38:24 +0000
commit4e2dcb6b742e189e711e4cf32053d0eb3b55325b (patch)
treedb9c48156b455cfca7eadb601fcfeb71e879bb22
parentf8767e58c588643fa51b4dc899a4281fcaabe0e5 (diff)
parentb906412f47a54bf044ee545235168952b352c118 (diff)
Merge pull request #6268 from lodinukal/fix_dynamic_handle_map
use xar.len instead of len for accessing length of items
-rw-r--r--core/container/handle_map/dynamic_handle_map.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/container/handle_map/dynamic_handle_map.odin b/core/container/handle_map/dynamic_handle_map.odin
index 72273873b..053bbdc43 100644
--- a/core/container/handle_map/dynamic_handle_map.odin
+++ b/core/container/handle_map/dynamic_handle_map.odin
@@ -49,7 +49,7 @@ dynamic_add :: proc(m: ^$D/Dynamic_Handle_Map($T, $Handle_Type), item: T, loc :=
}
_ = xar.append(&m.items, item, loc) or_return
- i := len(m.items)-1
+ i := xar.len(m.items)-1
ptr := xar.get_ptr_unsafe(&m.items, i)
ptr^ = item