diff --git a/src/Action.zig b/src/Action.zig index 198e174..9c94a45 100644 --- a/src/Action.zig +++ b/src/Action.zig @@ -13,5 +13,5 @@ pub fn init(scancode: SDL.Scancode, callback: *const anyopaque) Self { }; } pub fn call(self: Self, state: anytype) void { - @call(.{}, @ptrCast(*const fn (@TypeOf(state)) void, self.callback), .{state}); + @call(.auto, @ptrCast(*const fn (@TypeOf(state)) void, self.callback), .{state}); } diff --git a/src/MainMenu.zig b/src/MainMenu.zig index 21c177c..c416c72 100644 --- a/src/MainMenu.zig +++ b/src/MainMenu.zig @@ -169,7 +169,7 @@ fn actionSelUp(self: *Self) void { fn actionSelect(self: *Self) void { const action = self.getSel(0).action; - @call(.{}, action, .{self}); + @call(.auto, action, .{self}); } fn play(self: *Self) void {