Fix CM.Sim.eff

This commit is contained in:
Daniel van Noord
2020-12-03 18:31:45 +01:00
parent d6aca47698
commit 74b353d530
2 changed files with 3 additions and 3 deletions

View File

@@ -1153,7 +1153,7 @@ CM.Disp.RefreshScale = function() {
* This function returns time as a string depending on TimeFormat setting * This function returns time as a string depending on TimeFormat setting
* @param {number} time Time to be formatted * @param {number} time Time to be formatted
* @param {number} longFormat 1 or 0 * @param {number} longFormat 1 or 0
* @returns {string} Formatted time` * @returns {string} Formatted time
*/ */
CM.Disp.FormatTime = function(time, longFormat) { CM.Disp.FormatTime = function(time, longFormat) {
if (time == Infinity) return time; if (time == Infinity) return time;
@@ -4038,7 +4038,7 @@ CM.Sim.eff = function(name) {
return CM.Sim.effs[name] return CM.Sim.effs[name]
} }
else { else {
return Game.effs[name]; return CM.Sim.effs[name];
} }
} }

View File

@@ -118,7 +118,7 @@ CM.Sim.eff = function(name) {
return CM.Sim.effs[name] return CM.Sim.effs[name]
} }
else { else {
return Game.effs[name]; return CM.Sim.effs[name];
} }
} }