Skip to content

Commit 39b19ed

Browse files
committed
Fix change sex price deducted
1 parent 580b888 commit 39b19ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/pages/account/change_sex.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
$new_sex_str = $config['genders'][$new_sex];
6060

6161
$player->save();
62-
$account_logged->setCustomField("premium_points", $points - $config['account_change_character_name_points']);
62+
$account_logged->setCustomField('premium_points', $points - $config['account_change_character_sex_points']);
6363
$account_logged->logAction('Changed sex on character <b>' . $player->getName() . '</b> from <b>' . $old_sex_str . '</b> to <b>' . $new_sex_str . '</b>.');
6464
$twig->display('success.html.twig', array(
6565
'title' => 'Character Sex Changed',

0 commit comments

Comments
 (0)