diff --git a/hwe/sammo/API/Betting/Bet.php b/hwe/sammo/API/Betting/Bet.php index 3102eb89..91005cb5 100644 --- a/hwe/sammo/API/Betting/Bet.php +++ b/hwe/sammo/API/Betting/Bet.php @@ -134,7 +134,11 @@ class Bet extends \sammo\BaseAPI 'amount'=>$amount ]); - $db->insertUpdate('ng_betting', $bettingItem->toArray()); + $db->insertUpdate( + 'ng_betting', + $bettingItem->toArray(), + ['amount' => $db->sqleval('amount + %i', $amount)] + ); if($bettingInfo->reqInheritancePoint){ $inheritStor->setValue('previous', [$remainPoint - $amount, null]); }