Fix 266 bug

This commit is contained in:
ckcz123 committed 2019-12-31 20:10:36 +08:00
1 parent b111d8aa80
commit 202b6c8ca6
2 files changed
+5 -5

No files matched your search

+5 -3
View File
@@ -845,9 +845,11 @@ events.prototype.setEvents = function (list, x, y, callback) {
if (list) {
data.list = [{todo: core.clone(list), total: core.clone(list), condition: "false"}];
// 结束所有正在执行的自动事件
core.status.autoEvents.forEach(function (autoEvent) {
core.autoEventExecuting(autoEvent.symbol, false);
});
if (list.length == 0) {
core.status.autoEvents.forEach(function (autoEvent) {
core.autoEventExecuting(autoEvent.symbol, false);
});
}
}
if (x != null) data.x = x;
if (y != null) data.y = y;