You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 30, 2021. It is now read-only.
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