small syntax change

This commit is contained in:
Priec
2025-11-14 19:25:25 +01:00
parent 8fa8bf392b
commit b9ca8df59b
3 changed files with 5 additions and 3 deletions

View File

@@ -4,7 +4,8 @@
#include <cstdio>
// Convert a pivot coordinate (bottom-left) to the top-left draw position
PlayerPosition get_aligned_frame_position(PlayerPosition base, int frame_index) {
PlayerPosition get_aligned_frame_position(PlayerPosition base, PlayerFrame frame) {
int frame_index = static_cast<int>(frame);
if (frame_index < 0 || frame_index >= PLAYER_FRAME_COUNT)
frame_index = 0;