mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 15:43:49 +01:00
Merge pull request #2167 from Hedrauta/fix#1921
workaround? fix for #1921
This commit is contained in:
commit
f39524b77a
@ -1788,8 +1788,10 @@ export function getNextCompanyPosition(
|
||||
}
|
||||
|
||||
export function quitJob(this: IPlayer, company: string): void {
|
||||
this.isWorking = false;
|
||||
this.companyName = "";
|
||||
if (this.isWorking == true && this.workType == "Working for Company" && this.companyName == company) {
|
||||
this.isWorking = false;
|
||||
this.companyName = "";
|
||||
}
|
||||
delete this.jobs[company];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user