소스 검색

修复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)