mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 09:33:49 +01:00
Fix crash when quitting job
This commit is contained in:
parent
0de588ee17
commit
12330e1f12
@ -1769,6 +1769,7 @@ export function getNextCompanyPosition(
|
|||||||
//return the player's "nextCompanyPosition". Otherwise return the entryposType
|
//return the player's "nextCompanyPosition". Otherwise return the entryposType
|
||||||
//Employed at this company, so just return the next position if it exists.
|
//Employed at this company, so just return the next position if it exists.
|
||||||
const currentPositionName = this.jobs[this.companyName];
|
const currentPositionName = this.jobs[this.companyName];
|
||||||
|
if (!currentPositionName) return entryPosType;
|
||||||
const currentPosition = CompanyPositions[currentPositionName];
|
const currentPosition = CompanyPositions[currentPositionName];
|
||||||
if (
|
if (
|
||||||
(currentPosition.isSoftwareJob() && entryPosType.isSoftwareJob()) ||
|
(currentPosition.isSoftwareJob() && entryPosType.isSoftwareJob()) ||
|
||||||
|
Loading…
Reference in New Issue
Block a user