Initialise variable 'start' at the beginning

This commit is contained in:
Pradana AUMARS 2021-06-28 13:43:41 +02:00
parent 0d522fb521
commit c56480a33b
1 changed files with 1 additions and 1 deletions

View File

@ -6,6 +6,7 @@
int main (int argc, char* args[])
{
Pong *p = NULL;
int start = false;
if (SDL_Init(SDL_INIT_VIDEO) < 0)
{
@ -16,7 +17,6 @@ int main (int argc, char* args[])
p = Pong_init();
Pong_render(p);
int start = false;
while (!start) {
printf("Press any key to start...\r");
fflush(stdout);