From 5f991dd4130bff714635b7db81ddee6b11f401ec Mon Sep 17 00:00:00 2001 From: Aarex Tiaokhiao Date: Sat, 12 Sep 2020 10:44:34 -0400 Subject: [PATCH] Update game.js --- js/game.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/game.js b/js/game.js index 3ba176d..9dce91a 100644 --- a/js/game.js +++ b/js/game.js @@ -1858,7 +1858,7 @@ function checkForVars() { if (player.sb.auto === undefined) player.sb.auto = false if (player.timePlayed === undefined) player.timePlayed = 0 else if (typeof(player.timePlayed) == "string") { - player.timePlayed = player.timePlayed.toNumber() || 0 + player.timePlayed = Number(player.timePlayed) if (isNaN(player.timePlayed)) player.timePlayed = 0 if (player.timePlayed == 0) player.timePlayedReset = true }