HtheChemist / BitBurnerCentralManager

A prototype thread manager for BitBurner
MIT License
26 stars 12 forks source link

Thread manager dies because inUse is not defined #13

Closed lsv closed 2 years ago

lsv commented 2 years ago

Ill give more info in a few days :)

HtheChemist commented 2 years ago

I had this happen in a previous version. Does it still happen in the newer version?

gthazmatt commented 2 years ago

I'm getting it after just running the TL;DR instructions. image

HtheChemist commented 2 years ago

Pretty sure I found the bug. Line 122 of ThreadManager.ts should read:

if (threadIndex>=0) threads[threadIndex].inUse = false

Will update tonight

instead of:

if (threadIndex) threads[threadIndex].inUse = false

HtheChemist commented 2 years ago

Update pushed, it should not happen anymore.