[common] Player state life fix

This commit is contained in:
2019-03-28 20:50:27 +03:00
parent f60feea6e8
commit 8fb1d6132d
2 changed files with 2 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ class Player {
this.control = null;
this.state = state == null ? new PlayerState(id) : state;
this.state.reset();
this.state.life = config.life;
this.state.life = Math.isNaN(config.life) ? 0 : config.life;
}
private function set_tankId(value:Int):Int {