Fix crash due to goal checklines not initializing properly

This commit is contained in:
Marianne Gagnon
2016-01-05 20:36:01 -05:00
parent 347c608867
commit 4eb5ee6e77

View File

@@ -115,6 +115,8 @@ bool CheckGoal::isTriggered(const Vec3 &old_pos, const Vec3 &new_pos,
// ----------------------------------------------------------------------------
void CheckGoal::reset(const Track &track)
{
CheckStructure::reset(track);
const TrackObjectManager* tom = track.getTrackObjectManager();
assert(tom);