mirror of
https://github.com/photonstorm/phaser
synced 2024-11-25 22:20:44 +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;
|
var tween = this.pathTween;
|
||||||
|
|
||||||
if (tween)
|
if (tween && tween.data)
|
||||||
{
|
{
|
||||||
var tweenData = tween.data[0];
|
var tweenData = tween.data[0];
|
||||||
var pathDelta = this.pathDelta;
|
var pathDelta = this.pathDelta;
|
||||||
|
|
Loading…
Reference in a new issue