Merge pull request #2167 from Hedrauta/fix#1921

workaround? fix for #1921
This commit is contained in:
hydroflame
2022-01-08 14:28:09 -05:00
committed by GitHub

View File

@ -1788,8 +1788,10 @@ export function getNextCompanyPosition(
} }
export function quitJob(this: IPlayer, company: string): void { export function quitJob(this: IPlayer, company: string): void {
if (this.isWorking == true && this.workType == "Working for Company" && this.companyName == company) {
this.isWorking = false; this.isWorking = false;
this.companyName = ""; this.companyName = "";
}
delete this.jobs[company]; delete this.jobs[company];
} }