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
commit f39524b77a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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];
} }