mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 16:18:52 +00:00
[ease] Fix flux_stop.
This commit is contained in:
@@ -463,9 +463,9 @@ flux_update :: proc(flux: ^Flux_Map($T), dt: f64) where intrinsics.type_is_float
|
|||||||
|
|
||||||
// stop a specific key inside the map
|
// stop a specific key inside the map
|
||||||
// returns true when it successfully removed the key
|
// returns true when it successfully removed the key
|
||||||
flux_stop :: proc(flux: ^Flux_Map($T), key: ^f32) -> bool where intrinsics.type_is_float(T) {
|
flux_stop :: proc(flux: ^Flux_Map($T), key: ^T) -> bool where intrinsics.type_is_float(T) {
|
||||||
if key in flux {
|
if key in flux.values {
|
||||||
delete_key(flux, key)
|
delete_key(&flux.values, key)
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user