Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix null ref crash when TileRail is still in init phase
Browse files Browse the repository at this point in the history
cam72cam committed Jan 6, 2019
1 parent 3bef704 commit eec8381
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -171,6 +171,9 @@ public double percentFloating() {

@Override
public double getTrackGauge() {
if (info == null) {
return 0;
}
return info.settings.gauge.value();
}
}

0 comments on commit eec8381

Please sign in to comment.