From c3c24c580f550dabdf4332d9b3841ca2edd6a344 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Sat, 23 Feb 2019 17:44:44 -0600 Subject: [PATCH] total worth calc fix --- app/Http/Controllers/MoonsController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/MoonsController.php b/app/Http/Controllers/MoonsController.php index ac589c1ab..dea16bdf3 100644 --- a/app/Http/Controllers/MoonsController.php +++ b/app/Http/Controllers/MoonsController.php @@ -45,8 +45,8 @@ class MoonsController extends Controller $price = $moonCalc->SpatialMoonsOnlyGoo($moon->FirstOre, $moon->FirstQuantity, $moon->SecondOre, $moon->SecondQuantity, $moon->ThirdOre, $moon->ThirdQuantity, $moon->FourthOre, $moon->FourthQuantity); - $worth = $moonCalc->SpatialMoonsTotalWorth($firstOre, $firstQuantity, $secondOre, $secondQuantity, - $thirdOre, $thirdQuantity, $fourthOre, $fourthQuantity); + $worth = $moonCalc->SpatialMoonsTotalWorth($moon->FirstOre, $moon->FirstQuantity, $moon->SecondOre, $moon->SecondQuantity, + $moon->ThirdOre, $moon->ThirdQuantity, $moon->FourthOre, $moon->FourthQuantity); //Add the data to the html string to be passed to the view $html .= '';