mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 04:33:31 +00:00
The PathFollower.pathUpdate
method will now check if the tween
property has a valid data
component before running the update. This prevents a call to PathFollower.stopFollow
from throwing a Cannot read properties of null (reading '0')
error as it tried to do a single update post stop. Fix #6508
This commit is contained in:
parent
4d99863188
commit
c44dbccedc
1 changed files with 1 additions and 1 deletions
|
@ -359,7 +359,7 @@ var PathFollower = {
|
|||
{
|
||||
var tween = this.pathTween;
|
||||
|
||||
if (tween)
|
||||
if (tween && tween.data)
|
||||
{
|
||||
var tweenData = tween.data[0];
|
||||
var pathDelta = this.pathDelta;
|
||||
|
|
Loading…
Reference in a new issue