use ccalloc in input bindings
This commit is contained in:
parent
0014458dbb
commit
6d58e964bc
@ -74,7 +74,7 @@ static ActionHashItem *input_add_action(char const *action_name) {
|
||||
SDL_assert(action_name);
|
||||
|
||||
Action new_action = { 0 };
|
||||
new_action.bindings = SDL_calloc(ctx.keybind_slots, sizeof *new_action.bindings);
|
||||
new_action.bindings = ccalloc(ctx.keybind_slots, sizeof *new_action.bindings);
|
||||
shput(ctx.input.action_hash, action_name, new_action);
|
||||
return shgetp(ctx.input.action_hash, action_name);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user