summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--game.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/game.c b/game.c
index 54e0581..7950252 100644
--- a/game.c
+++ b/game.c
@@ -130,7 +130,8 @@ int play_level(SDL_Renderer* renderer, struct level_struct *currentlevel)
int got_event = SDL_PollEvent(&userinput);
// Player movement
- signed int y, x;
+ signed int x = 0;
+ signed int y = 0;
if ( userinput.type == SDL_KEYDOWN ) {
switch ( userinput.key.keysym.sym )
{