clear Player.companyName if set to company when quiting work for said

company
This commit is contained in:
TheMas3212 2022-01-09 14:16:44 +11:00
parent 0de588ee17
commit 756d5fbc0d
No known key found for this signature in database
GPG Key ID: 62A173A4FDA683CA

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