mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-19 04:50:29 +00:00
In handle_map.dynamic_add(), 'item' has been appended to the xar so this additional assignment is unneeded.
This commit is contained in:
@@ -52,7 +52,6 @@ dynamic_add :: proc(m: ^$D/Dynamic_Handle_Map($T, $Handle_Type), item: T, loc :=
|
||||
i := xar.len(m.items)-1
|
||||
|
||||
ptr := xar.get_ptr_unsafe(&m.items, i)
|
||||
ptr^ = item
|
||||
|
||||
ptr.handle.idx = auto_cast i
|
||||
ptr.handle.gen = 1
|
||||
|
||||
Reference in New Issue
Block a user