Fix Load Shop

This commit is contained in:
oc 2018-02-21 11:07:15 +08:00
parent 73188765f5
commit 903d2ac165

View File

@ -4756,8 +4756,10 @@ core.prototype.loadData = function (data, callback) {
// load shop times // load shop times
for (var shop in core.status.shops) { for (var shop in core.status.shops) {
core.status.shops[shop].times = data.shops[shop].times; if (core.isset(data.shops[shop])) {
core.status.shops[shop].visited = data.shops[shop].visited; core.status.shops[shop].times = data.shops[shop].times;
core.status.shops[shop].visited = data.shops[shop].visited;
}
} }
core.events.afterLoadData(data); core.events.afterLoadData(data);