Fixed bug with Player.workForFaction() calling the wrong 'finish' function when it goes over the max time (after being offline)

This commit is contained in:
danielyxie 2018-09-16 14:48:36 -05:00
parent ae4eb2f30e
commit 94739129de
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

@ -1006,7 +1006,7 @@ PlayerObject.prototype.workForFaction = function(numCycles) {
//If timeWorked == 20 hours, then finish. You can only work for the faction for 20 hours //If timeWorked == 20 hours, then finish. You can only work for the faction for 20 hours
if (overMax || this.timeWorked >= CONSTANTS.MillisecondsPer20Hours) { if (overMax || this.timeWorked >= CONSTANTS.MillisecondsPer20Hours) {
return this.finishWork(false); return this.finishFactionWork(false);
} }
var txt = document.getElementById("work-in-progress-text"); var txt = document.getElementById("work-in-progress-text");