jstar88 / opbe

Ogame probabilistic battle engine
GNU Affero General Public License v3.0
76 stars 29 forks source link

Battle report error? #9

Closed lancer26 closed 9 years ago

lancer26 commented 9 years ago
// in BattleReport.php
// function getAfterBattlePlayerGroup

if (!$endFleet->existShipType($idShipType))
{
    $endShipType = $shipType;
}
else
{
    $endShipType = $endFleet->getShipType($idShipType);
    $endShipType->increment($shipType->getCount());
}

// should be 
$endFleet->add( $shipType);
jstar88 commented 9 years ago

oh thanks, you are in right. Fixed