Program: 55835
Project: 55835
Buggy source:
private void drawObject(int x,int y,IMapObject object,float color){
  EMapObjectType type=object.getObjectType();
  float progress=object.getStateProgress();
switch (type) {
case ARROW:
    drawArrow(context,(IArrowMapObject)object,color);
  break;
case TREE_ADULT:
if (context.ENABLE_ORIGINAL) {
  drawTree(x,y,color);
}
 else {
  drawTreeTest(x,y,color);
}
break;
case TREE_DEAD:
playSound(object,SOUND_FALLING_TREE);
drawFallingTree(x,y,progress,color);
break;
case TREE_GROWING:
drawGrowingTree(x,y,progress,color);
break;
case CORN_GROWING:
drawGrowingCorn(x,y,object,color);
break;
case CORN_ADULT:
drawCorn(x,y,color);
break;
case CORN_DEAD:
drawDeadCorn(x,y,color);
break;
case WINE_GROWING:
drawGrowingWine(x,y,object,color);
break;
case WINE_HARVESTABLE:
drawHarvestableWine(x,y,color);
break;
case WINE_DEAD:
drawDeadWine(x,y,color);
break;
case WINE_BOWL:
drawWineBowl(x,y,object,color);
break;
case WAVES:
drawWaves(x,y,color);
break;
case STONE:
drawStones(x,y,object,color);
break;
case GHOST:
drawPlayerableByProgress(x,y,12,27,object,color);
playSound(object,SOUND_SETTLER_KILLED);
break;
case BUILDING_DECONSTRUCTION_SMOKE:
drawByProgress(x,y,13,38,object.getStateProgress(),color);
playSound(object,SOUND_BUILDING_DESTROYED);
break;
case FOUND_COAL:
drawByProgress(x,y,OBJECTS_FILE,94,object.getStateProgress(),color);
break;
case FOUND_GEMSTONE:
drawByProgress(x,y,OBJECTS_FILE,95,object.getStateProgress(),color);
break;
case FOUND_GOLD:
drawByProgress(x,y,OBJECTS_FILE,96,object.getStateProgress(),color);
break;
case FOUND_IRON:
drawByProgress(x,y,OBJECTS_FILE,97,object.getStateProgress(),color);
break;
case FOUND_BRIMSTONE:
drawByProgress(x,y,OBJECTS_FILE,98,object.getStateProgress(),color);
break;
case FOUND_NOTHING:
drawByProgress(x,y,OBJECTS_FILE,99,object.getStateProgress(),color);
break;
case BUILDINGSITE_SIGN:
drawByProgress(x,y,OBJECTS_FILE,93,object.getStateProgress(),color);
break;
case BUILDINGSITE_POST:
drawByProgress(x,y,OBJECTS_FILE,92,object.getStateProgress(),color);
break;
case WORKAREA_MARK:
drawByProgress(x,y,OBJECTS_FILE,91,object.getStateProgress(),color);
break;
case FLAG_DOOR:
drawPlayerableWaving(x,y,13,63,object,color);
break;
case CONSTRUCTION_MARK:
drawConstructionMark(x,y,object,color);
break;
case FLAG_ROOF:
drawRoofFlag(x,y,object,color);
break;
case BUILDING:
drawBuilding(x,y,(IBuilding)object,color);
break;
case PLACEMENT_BUILDING:
drawPlacementBuilding(x,y,object,color);
break;
case STACK_OBJECT:
drawStack(x,y,(IStackMapObject)object,color);
break;
case SMOKE:
drawByProgress(x,y,13,42,progress,color);
break;
case WINE:
drawByProgress(x,y,1,25,progress,color);
break;
case PLANT_DECORATION:
drawPlantDecoration(x,y,color);
break;
case DESERT_DECORATION:
drawDesertDecoration(x,y,color);
break;
case PIG:
drawPig(x,y,color);
break;
case DONKEY:
drawDonkey(x,y,object,color);
break;
case FISH_DECORATION:
drawDecorativeFish(x,y,color);
break;
case ATTACKABLE_TOWER:
drawAttackableTower(x,y,object);
break;
default :
break;
}
}

Fixed version (ground truth):
private void drawObject(int x,int y,IMapObject object,float color){
  EMapObjectType type=object.getObjectType();
  float progress=object.getStateProgress();
switch (type) {
case ARROW:
    drawArrow(context,(IArrowMapObject)object,color);
  break;
case TREE_ADULT:
if (context.ENABLE_ORIGINAL) {
  drawTree(x,y,color);
}
 else {
  drawTreeTest(x,y,color);
}
break;
case TREE_DEAD:
playSound(object,SOUND_FALLING_TREE);
drawFallingTree(x,y,progress,color);
break;
case TREE_GROWING:
drawGrowingTree(x,y,progress,color);
break;
case CORN_GROWING:
drawGrowingCorn(x,y,object,color);
break;
case CORN_ADULT:
drawCorn(x,y,color);
break;
case CORN_DEAD:
drawDeadCorn(x,y,color);
break;
case WINE_GROWING:
drawGrowingWine(x,y,object,color);
break;
case WINE_HARVESTABLE:
drawHarvestableWine(x,y,color);
break;
case WINE_DEAD:
drawDeadWine(x,y,color);
break;
case WINE_BOWL:
drawWineBowl(x,y,object,color);
break;
case WAVES:
drawWaves(x,y,color);
break;
case STONE:
drawStones(x,y,(int)object.getStateProgress(),color);
break;
case CUT_OFF_STONE:
drawStones(x,y,0,color);
break;
case GHOST:
drawPlayerableByProgress(x,y,12,27,object,color);
playSound(object,SOUND_SETTLER_KILLED);
break;
case BUILDING_DECONSTRUCTION_SMOKE:
drawByProgress(x,y,13,38,object.getStateProgress(),color);
playSound(object,SOUND_BUILDING_DESTROYED);
break;
case FOUND_COAL:
drawByProgress(x,y,OBJECTS_FILE,94,object.getStateProgress(),color);
break;
case FOUND_GEMSTONE:
drawByProgress(x,y,OBJECTS_FILE,95,object.getStateProgress(),color);
break;
case FOUND_GOLD:
drawByProgress(x,y,OBJECTS_FILE,96,object.getStateProgress(),color);
break;
case FOUND_IRON:
drawByProgress(x,y,OBJECTS_FILE,97,object.getStateProgress(),color);
break;
case FOUND_BRIMSTONE:
drawByProgress(x,y,OBJECTS_FILE,98,object.getStateProgress(),color);
break;
case FOUND_NOTHING:
drawByProgress(x,y,OBJECTS_FILE,99,object.getStateProgress(),color);
break;
case BUILDINGSITE_SIGN:
drawByProgress(x,y,OBJECTS_FILE,93,object.getStateProgress(),color);
break;
case BUILDINGSITE_POST:
drawByProgress(x,y,OBJECTS_FILE,92,object.getStateProgress(),color);
break;
case WORKAREA_MARK:
drawByProgress(x,y,OBJECTS_FILE,91,object.getStateProgress(),color);
break;
case FLAG_DOOR:
drawPlayerableWaving(x,y,13,63,object,color);
break;
case CONSTRUCTION_MARK:
drawConstructionMark(x,y,object,color);
break;
case FLAG_ROOF:
drawRoofFlag(x,y,object,color);
break;
case BUILDING:
drawBuilding(x,y,(IBuilding)object,color);
break;
case PLACEMENT_BUILDING:
drawPlacementBuilding(x,y,object,color);
break;
case STACK_OBJECT:
drawStack(x,y,(IStackMapObject)object,color);
break;
case SMOKE:
drawByProgress(x,y,13,42,progress,color);
break;
case PLANT_DECORATION:
drawPlantDecoration(x,y,color);
break;
case DESERT_DECORATION:
drawDesertDecoration(x,y,color);
break;
case PIG:
drawPig(x,y,color);
break;
case DONKEY:
drawDonkey(x,y,object,color);
break;
case FISH_DECORATION:
drawDecorativeFish(x,y,color);
break;
case ATTACKABLE_TOWER:
drawAttackableTower(x,y,object);
break;
default :
break;
}
}