diff --git a/src/main.c b/src/main.c
index a04ceab640c2ee2f047ea30ceedc7e141062ca5f..c4d35e92b03850eb26d1d416723e5d8082af92c8 100644
--- a/src/main.c
+++ b/src/main.c
@@ -248,7 +248,8 @@ void processSprites(void) {
 	// to do with automating animation frame order indices
 	uint8_t curanimframeletter = 0x41;
 	uint8_t lastanimframeletterinstate = 0;
-	uint8_t curstate, laststate = 0;
+	uint8_t curstate = 0;
+	uint8_t laststate = 0;
 
 	kfollower.highestanimframeletter = 0x41;