Fix loc bug

This commit is contained in:
oc 2019-01-11 21:43:42 +08:00
parent 8be8696229
commit 040b8b9de4
2 changed files with 3 additions and 3 deletions

View File

@ -2196,7 +2196,7 @@ control.prototype.doSL = function (id, type) {
}); });
} }
if (id == 'autoSave' && core.saves.autosave.data != null) { if (id == 'autoSave' && core.saves.autosave.data != null) {
afterGet(core.saves.autosave.data); afterGet(core.clone(core.saves.autosave.data));
} }
else { else {
core.getLocalForage(id=='autoSave'?id:"save"+id, null, function(data) { core.getLocalForage(id=='autoSave'?id:"save"+id, null, function(data) {
@ -2238,7 +2238,7 @@ control.prototype.doSL = function (id, type) {
}); });
} }
if (id == 'autoSave' && core.saves.autosave.data != null) { if (id == 'autoSave' && core.saves.autosave.data != null) {
afterGet(core.saves.autosave.data); afterGet(core.clone(core.saves.autosave.data));
} }
else { else {
core.getLocalForage(id=='autoSave'?id:"save"+id, null, function(data) { core.getLocalForage(id=='autoSave'?id:"save"+id, null, function(data) {

View File

@ -301,7 +301,7 @@ events.prototype.gameOver = function (ending, fromReplay, norank) {
doUpload(""); doUpload("");
} }
else { else {
doUpload(prompt("请输入你的ID", core.getCookie('id'))); doUpload(prompt("请输入你的ID", core.getCookie('id')||""));
} }
}, function () { }, function () {
if (main.isCompetition) if (main.isCompetition)