the instruction at "0x004f53cc" referenced memory at "0x027581c8". The memory could not be "read". Click on OK to terminate the program
while (App.isOpen())
{
while (App.pollEvent(Event))
{
if (Event.type == sf::Event::Closed)
App.close();
if (Event.type == sf::Event::KeyReleased)
{
if(Event.key.code == sf::Keyboard::Return)
{
if(stage == 0)
{
stage = 1;
loaded = 0;
}
else if(stage == 1)
{
if(menu_choice == 0)
{
stage = 2;
loaded = 0;
}
if(menu_choice == 1)
{
}
if(menu_choice == 2) // This is when he presses exit menu/same goes for the X sign on the windows bar.
{
App.close();
}
}
}
}
}
}
return EXIT_SUCCESS;
}