Save next payday (in case of crash)

This commit is contained in:
Vortrex
2023-03-04 23:43:56 -06:00
parent 7193e349df
commit d87dfb0b05

View File

@@ -46,6 +46,7 @@ class SubAccountData {
this.inHouse = 0;
this.inBusiness = 0;
this.accent = "";
this.payDayAmount = 0;
this.bodyParts = {
hair: [0, 0],
@@ -338,6 +339,7 @@ function saveSubAccountToDatabase(subAccountData) {
["sacct_svr_hd_prop_leftfoot_texture", subAccountData.bodyProps.leftFoot[1]],
["sacct_svr_hd_prop_rightfoot_model", subAccountData.bodyProps.rightFoot[0]],
["sacct_svr_hd_prop_rightfoot_texture", subAccountData.bodyProps.rightFoot[1]],
["sacct_svr_payday", subAccountData.payDayAmount],
];
dbQuery = null;