mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-18 12:15:44 +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) {
|
||||
if(!isFinite(amt))
|
||||
if(!isFinite(amt)) {
|
||||
console.error('Trying to add invalid amount of funds. Report to a developper.');
|
||||
return;
|
||||
}
|
||||
this.funds = this.funds.plus(amt);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user