Fix CM.Sim.eff

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

No files matched your search

+2 -2
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];
} }
} }
+1 -1
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];
} }
} }