From 81d24ea62dfcf1695b48f6df46b27972161b0e00 Mon Sep 17 00:00:00 2001 From: Dendy Faist Date: Sat, 31 Dec 2022 01:57:45 +0100 Subject: [PATCH] Update @call to latest API --- src/Action.zig | 2 +- src/MainMenu.zig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 {