mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-19 14:13:48 +01:00
Fixed bug where company.name property didnt get properly updated for v0.41.2
This commit is contained in:
parent
074f8d9834
commit
1a47e81001
@ -127,7 +127,7 @@ function evaluateVersionCompatibility(ver) {
|
||||
// The "companyName" property of all Companies is renamed to "name"
|
||||
for (var companyName in Companies) {
|
||||
const company = Companies[companyName];
|
||||
if (company.name == null && company.companyName != null) {
|
||||
if ((company.name == null || company.name === 0 || company.name === "") && company.companyName != null) {
|
||||
console.log("Changed company name property to be compatible with v0.41.2");
|
||||
company.name = company.companyName;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user