Skip to content

Commit c89f9a9

Browse files
authored
Merge pull request phaserjs#4195 from kensleebos/master
Fix for from/to in PathFollower.js
2 parents cd8fb42 + 0b70968 commit c89f9a9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/gameobjects/pathfollower/PathFollower.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,8 @@ var PathFollower = new Class({
230230
}
231231

232232
// Override in case they've been specified in the config
233-
config.from = 0;
234-
config.to = 1;
233+
config.from = config.from || 0;
234+
config.to = config.to || 1;
235235

236236
// Can also read extra values out of the config:
237237

0 commit comments

Comments
 (0)