Skip to content

Commit 72e963a

Browse files
committed
Trails: prevent crash when reset() is called manually by game code just after a new
1 parent 132e501 commit 72e963a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

hrt/prefab/l3d/Trails.hx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,8 @@ class TrailObj extends h3d.scene.Mesh {
266266
}
267267

268268
public function reset() {
269+
if( points == null )
270+
return;
269271
for (i in 0...numTrails) {
270272
var t = trails[i];
271273
var p = t.firstPoint;

0 commit comments

Comments
 (0)