mirror of
https://github.com/nicbarker/clay.git
synced 2026-02-06 12:48:49 +00:00
[Bindings/Odin] Fix ID procedure ignoring index (#496)
This commit is contained in:
parent
33f0ff70a9
commit
13f9fa6e04
1 changed files with 1 additions and 1 deletions
|
|
@ -482,7 +482,7 @@ MakeString :: proc(label: string) -> String {
|
||||||
}
|
}
|
||||||
|
|
||||||
ID :: proc(label: string, index: u32 = 0) -> ElementId {
|
ID :: proc(label: string, index: u32 = 0) -> ElementId {
|
||||||
return _HashString(MakeString(label), 0)
|
return _HashString(MakeString(label), index)
|
||||||
}
|
}
|
||||||
|
|
||||||
ID_LOCAL :: proc(label: string, index: u32 = 0) -> ElementId {
|
ID_LOCAL :: proc(label: string, index: u32 = 0) -> ElementId {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue