diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2026-02-13 10:38:24 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-13 10:38:24 +0000 |
| commit | 4e2dcb6b742e189e711e4cf32053d0eb3b55325b (patch) | |
| tree | db9c48156b455cfca7eadb601fcfeb71e879bb22 | |
| parent | f8767e58c588643fa51b4dc899a4281fcaabe0e5 (diff) | |
| parent | b906412f47a54bf044ee545235168952b352c118 (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.odin | 2 |
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 |