forked from mirror/OpenTTD
(svn r1959) -Fix: Repaired two memleaks I have hacked :(
This commit is contained in:
@@ -131,6 +131,9 @@ static int GetTrainAcceleration(Vehicle *v, bool mode)
|
||||
sum += dist[i];
|
||||
}
|
||||
|
||||
free(dist);
|
||||
dist = NULL;
|
||||
|
||||
if (numcurve > 0) {
|
||||
sum /= numcurve;
|
||||
}
|
||||
|
Reference in New Issue
Block a user