List of issuesList of issues

#987 assignment in for each lost
Author: user BeniBela
Date created:
Type: bug
Visibility: Everybody
Assigned to:
State: new Help

An aassignment to a map was lost in a for each: private function initBuildingArray(param1:ArrayCollection) : void { var _loc2_:BuildingInfo = null; _buildings = param1; _buildingMap = {}; for each(_buildingMap["id:" + _loc2_.buildingType] in param1) { switch(_loc2_.buildingType) { case BuildingsConfig.CONTROLCENTER_TYPE: CollectResMdt.CREDIT_DURING = _loc2_.collectDuring * 3600000; continue; case BuildingsConfig.QUARRIES_TYPE: CollectResMdt.ORE_DURING = _loc2_.collectDuring * 3600000; continue; case BuildingsConfig.POWERPLANT_TYPE: CollectResMdt.ENERGY_DURING = _loc2_.collectDuring * 3600000; continue; default: continue; } } ... } but it should have been private function initBuildingArray(param1:ArrayCollection) : void { var _loc2_:BuildingInfo = null; _buildings = param1; _buildingMap = {}; for each(_loc2_ in param1) { _buildingMap["id:" + _loc2_.buildingType] = _loc2_; switch(_loc2_.buildingType) { case BuildingsConfig.CONTROLCENTER_TYPE: CollectResMdt.CREDIT_DURING = _loc2_.collectDuring * 3600000; continue; case BuildingsConfig.QUARRIES_TYPE: CollectResMdt.ORE_DURING = _loc2_.collectDuring * 3600000; continue; case BuildingsConfig.POWERPLANT_TYPE: CollectResMdt.ENERGY_DURING = _loc2_.collectDuring * 3600000; continue; default: continue; } } ... }
user
Another, clearer example is in AssignShipToHeroUI doSkills
 
Google Translate: Translate to Czech Translate to Slovak Translate to Russian Translate to Hungarian Translate to Swedish Translate to French Translate to German Translate to Spanish Translate to Italian
Change style: oceanic classic