workaround? fix for #1921

simple do: if the player does work for company, quit WIP... otherwise let WIP still run
This commit is contained in:
Hedrauta 2021-12-24 02:19:28 +01:00
parent ed86577d6c
commit 33d8e6d3fe

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