actboy168 / YDWE

A Tool to Help the Creation of Warcraft III Map
GNU General Public License v3.0
463 stars 139 forks source link

预处理物编时,不适当的“修改了x个对象”提示 #181

Closed yefq closed 4 years ago

yefq commented 4 years ago

预处理SLK时,会弹出不适当的"对象被修改"提示框。

重现方法:

  1. 将物编对象的某个字符串数据设置为空字符串
  2. 进行多次保存(在每次保存时,都一定会出现弹框)

预期效果:

数据存在改动时,才应该出现这个提示。

重现代码:

<?
local slk = require 'slk'

slk.unit.nfot:new('uB02') {
    EditorSuffix = ''
}
?>