mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-23 22:52:29 +01:00
My corp infinity safeguard from 2 patch ago wasn't actually preventing it, just logging, now it returns to avoid it.
This commit is contained in:
parent
c9ab7908a7
commit
c110c22efb
2
dist/engine.bundle.js
vendored
2
dist/engine.bundle.js
vendored
File diff suppressed because one or more lines are too long
@ -1947,8 +1947,10 @@ function Corporation(params={}) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Corporation.prototype.addFunds = function(amt) {
|
Corporation.prototype.addFunds = function(amt) {
|
||||||
if(!isFinite(amt))
|
if(!isFinite(amt)) {
|
||||||
console.error('Trying to add invalid amount of funds. Report to a developper.');
|
console.error('Trying to add invalid amount of funds. Report to a developper.');
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.funds = this.funds.plus(amt);
|
this.funds = this.funds.plus(amt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user