Fix backwards logic on quitJob

This commit is contained in:
Snarling 2022-06-16 07:44:32 -04:00
parent 6f017bf4f6
commit 7acb83ba77

@ -1854,7 +1854,7 @@ export function getNextCompanyPosition(
}
export function quitJob(this: IPlayer, company: string, _sing = false): void {
if (this.isWorking == true && this.workType !== WorkType.Company && this.companyName == company) {
if (this.isWorking === true && this.workType === WorkType.Company && this.companyName === company) {
this.finishWork(true);
}
delete this.jobs[company];