Fix tiny bug

This commit is contained in:
ckcz123 2021-09-02 14:05:31 +08:00
parent 49b9f2f79c
commit 30a9004bbf

View File

@ -1005,7 +1005,7 @@ editor_uievent_wrapper = function (editor) {
var values = Array.from(document.getElementById('_previewStatusBarValue').children).filter(function (one) {
return one.tagName == 'INPUT' || one.tagName == 'TEXTAREA';
}).map(function (one) { return one.value; });
core.status.hero.name = values[0].value;
core.status.hero.name = values[0];
core.status.hero.hp = parseFloat(values[1]);
core.status.hero.hpmax = parseFloat(values[2]);
core.status.hero.atk = parseFloat(values[3]);