mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-26 16:07:33 +01:00
Merge pull request #4010 from Risenafis/fix-create-corp
NETSCRIPT: Correct missing ! for boolean coercion in Corporation.createCorporation().
This commit is contained in:
commit
6969ff52c7
@ -976,7 +976,7 @@ export function NetscriptCorporation(): InternalAPI<NSCorporation> {
|
||||
(ctx: NetscriptContext) =>
|
||||
(_corporationName: unknown, _selfFund: unknown = true): boolean => {
|
||||
const corporationName = helpers.string(ctx, "corporationName", _corporationName);
|
||||
const selfFund = !_selfFund;
|
||||
const selfFund = !!_selfFund;
|
||||
return createCorporation(corporationName, selfFund);
|
||||
},
|
||||
hasUnlockUpgrade:
|
||||
|
Loading…
Reference in New Issue
Block a user