Skip to content
This repository has been archived by the owner on Apr 30, 2021. It is now read-only.

[BUG] Console errors when moving tokens w/o combatants in combat tracker #25

Open
VeilOfOblivion opened this issue Nov 20, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@VeilOfOblivion
Copy link

Describe the bug
Moving tokens when combat tracker is empty causes console errors

Environment Details
Foundry VTT Version: 0.7.7
Turn Marker Version: 2.6.9
All other modules deactivated
Happens in Chrome (86.0.4240.198) and Firefox (82.0.3)

To Reproduce
Move a token without having anyone in the combat tracker and check the console for errors

Expected behavior
No errors

Stack Trace
turnmarker.js:56 Uncaught (in promise) TypeError: Cannot read property 'token' of undefined
at turnmarker.js:56
at Function._call (foundry.js:2496)
at Function.call (foundry.js:2481)
at foundry.js:29906
at Array.reduce ()
at Scene.updateEmbeddedEntity (foundry.js:29893)
at TokenLayer.updateMany (foundry.js:12402)
at TokenLayer.moveMany (foundry.js:12344)
at KeyboardManager._handleMovement (foundry.js:3059)
at foundry.js:3028
(anonymous) @ turnmarker.js:56
_call @ foundry.js:2496
call @ foundry.js:2481
(anonymous) @ foundry.js:29906
updateEmbeddedEntity @ foundry.js:29893
updateMany @ foundry.js:12402
moveMany @ foundry.js:12344
_handleMovement @ foundry.js:3059
(anonymous) @ foundry.js:3028
setTimeout (async)
_onMovement @ foundry.js:3028
_handleKeys @ foundry.js:2805
_onKeyDown @ foundry.js:2760

@VeilOfOblivion VeilOfOblivion added the bug Something isn't working label Nov 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants