Make use of zig switch syntax

This commit is contained in:
Dusk 2022-07-14 15:23:13 +02:00
parent 2c22dabeae
commit 825bf1a499
1 changed files with 2 additions and 2 deletions

View File

@ -49,8 +49,8 @@ pub fn main() !void {
_ = SDL.SDL_RenderClear(renderer);
current_state = switch (current_state) {
State.main_menu => main_menu.tick(),
State.game => game.tick(),
.main_menu => main_menu.tick(),
.game => game.tick(),
};
SDL.SDL_RenderPresent(renderer);