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

View File

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