If you are looking for the decompiler itself, visit https://github.com/jindrapetrik/jpexs-decompiler
NEW : You can now close your own issues and reopen them later if needed. You can also comment closed issues.
List of issues#2722 switch case statement not correctly decompiled
Author:
zsd2
zsd2Date created:
Type: bug
Visibility: Everybody
Assigned to:
State: new 

> What steps will reproduce the problem?
open home sheep home 2 lost in space(or lost underground, or lost in london, should have
the same issue)
> What is the expected output? What do you see instead?
in com.aardman.app.App
in function setupLevelSelectScreen, there is a switch-case statement shown as:
switch(level.stars)
{
case 3:
item.star3.gotoAndStop("got");
case 2:
item.star2.gotoAndStop("got");
case 1:
item.star1.gotoAndStop("got");
case 4:
item.star1.gotoAndStop("dev");
item.star2.gotoAndStop("dev");
item.star3.gotoAndStop("dev");
}
according to game logic and p-code, at the end of case 1 there should be a break:
switch(level.stars)
{
case 3:
item.star3.gotoAndStop("got");
case 2:
item.star2.gotoAndStop("got");
case 1:
item.star1.gotoAndStop("got");
break;
case 4:
item.star1.gotoAndStop("dev");
item.star2.gotoAndStop("dev");
item.star3.gotoAndStop("dev");
}
> What version of the product are you using? Is it "nightly build"? Which operating system
do you have?
26.2.1, not nightly build
windows 10
> Please provide any additional information below. If the problem is related to a SWF
file, attach it here, otherwise we can't help you.
homesheephome2lostinspace.zip (11,662 KiB)