Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

Commit

Permalink
Fix #182
Browse files Browse the repository at this point in the history
  • Loading branch information
Qwatayean committed Mar 21, 2019
1 parent 79d7782 commit 437dcec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions includes/pages/game/ShowFleetAjaxPage.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,11 @@ public function show()
if($UserDeuterium < 0) {
$this->sendData(613, $LNG['fa_not_enough_fuel']);
}

$PlanetRess = new ResourceUpdate();
$PlanetRess->CalcResource($USER, $PLANET, true);
$PLANET[$resource[903]] -= $consumption;
$PlanetRess->SavePlanetToDB($USER, $PLANET);

if($consumption > FleetFunctions::GetFleetRoom($fleetArray)) {
$this->sendData(613, $LNG['fa_no_fleetroom']);
Expand Down

0 comments on commit 437dcec

Please sign in to comment.