Преглед изворни кода

修复bug,机器人死亡将余额设置为0

hl пре 1 година
родитељ
комит
c065f1e890
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      src/robot.js

+ 1 - 0
src/robot.js

@@ -260,6 +260,7 @@ async function run(param) {
             robotStatus(app)
             app.childProcess = undefined
             app.status = 0
+            app.nowBalance = 0
         });
         app.threadStatus = RobotStatus.RUNNING
         return resolve(true)