wsaunders1014 / EnhancedMovement

HomePage
2 stars 2 forks source link

Error message when the map has no grid #3

Open rinnocenti opened 4 years ago

rinnocenti commented 4 years ago

when entering maps without a grid the HUD does not appear and error messages appear. TypeError: Cannot read property 'movementTypes' of undefined at SpeedHUD.updateHUD (SpeedHUD.js:177) at enhanced-movement.js:206 at Function._call (foundry.js:2239) at Function.callAll [as __furnace_original_callAll] (foundry.js:2199) at Function.callOriginalFunction (Patches.js:57) at Function.<anonymous> (Debug.js:33) at Token.control (foundry.js:12182) at Token._onClickLeft (foundry.js:38829) at MouseInteractionManager.callback (foundry.js:31015) at MouseInteractionManager._handleClickLeft (foundry.js:31199) _call @ foundry.js:2242 callAll @ foundry.js:2199 callOriginalFunction @ Patches.js:57 (anonymous) @ Debug.js:33 control @ foundry.js:12182 _onClickLeft @ foundry.js:38829 callback @ foundry.js:31015 _handleClickLeft @ foundry.js:31199 _handleMouseDown @ foundry.js:31180 a.emit @ index.js:181 r.dispatchEvent @ InteractionManager.js:1028 r.processPointerDown @ InteractionManager.js:1227 pr.recursiveFindHit @ TreeSearch.js:166 pr.recursiveFindHit @ TreeSearch.js:106 pr.recursiveFindHit @ TreeSearch.js:106 pr.recursiveFindHit @ TreeSearch.js:106 pr.findHit @ TreeSearch.js:191 r.processInteractive @ InteractionManager.js:1097 r.onPointerDown @ InteractionManager.js:1172 SpeedHUD.js:177 Uncaught TypeError: Cannot read property 'movementTypes' of undefined at SpeedHUD.updateHUD (SpeedHUD.js:177) at enhanced-movement.js:214