Calling censusPanel.update() with poorly skilled kittens crashes game
Issue #85
resolved
If a kitten has just begun a job, their experience in the job is 'undefined'. When the game panel updates, it yields a TypeError on line 1465 of Village.js.
record.content.innerHTML += "<span title='" + exp.toFixed(2) + "'" + style + ">"
"Cannot read property 'toFixed' of undefined"
I believe the fix here would be to give kittens 0 experience in their jobs when assigned.
Comments (2)
-
-
- changed status to resolved
- Log in to comment
Ok, ec5ca282c64f4c0aaf5a5aeaab44cb4a7b672313 fixes it.