The code assumed that a player was being passed when it wasn't.
Reported by @Angen on rP23843.
I think I could change the whole thing to use the new token system, but this seems like a larger change and I'll see that later.
Differential D2904
Fix warning with disabled templates in rP23843 wraitii on Jul 25 2020, 9:07 AM. Authored by
Details
The code assumed that a player was being passed when it wasn't. Reported by @Angen on rP23843. I think I could change the whole thing to use the new token system, but this seems like a larger change and I'll see that later. Disable spies and run a game.
Diff Detail
Event TimelineComment Actions Successful build - Chance fights ever on the side of the prudent. Linter detected issues: Executing section Source... Executing section JS... binaries/data/mods/public/simulation/components/Player.js | 346| » for·(var·type·in·amounts) | | [NORMAL] JSHintBear: | | 'type' is already defined. Executing section cli... Link to build: https://jenkins.wildfiregames.com/job/docker-differential/2773/display/redirect |