Hi! I have this code that is not working (gives unexpected results/ crashes)
switch (myCurrentSelection)
{
case 0: myGoToStory();
case 1: myGoToMap();
case 2: myGotoCollection();
case 3: myGoToAchievements();
case 4: myLibroOut();
case 5: myExit();
}
but I replace with this code and works perfect (basically is the same but i think is less efficient)
if (myCurrentSelection == 0) myGoToStory();
if (myCurrentSelection == 1) myGoToMap();
if (myCurrentSelection == 2) myGotoCollection();
if (myCurrentSelection == 3) myGoToAchievements();
if (myCurrentSelection == 4) myLibroOut();
if (myCurrentSelection == 5) myExit();
Any idea? Thanks!