Merge pull request #2493 from TheMas3212/fix-2492

clear Player.companyName if set to company when quiting work for said company
This commit is contained in:
hydroflame 2022-01-09 13:02:59 -05:00 committed by GitHub
commit 74504a68f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1797,6 +1797,9 @@ export function quitJob(this: IPlayer, company: string): void {
this.isWorking = false; this.isWorking = false;
this.companyName = ""; this.companyName = "";
} }
if (this.companyName === company) {
this.companyName = "";
}
delete this.jobs[company]; delete this.jobs[company];
} }