1
0
Fork 0

(svn r23341) -Fix (r23338): memory leak when converting rails

release/1.2
rubidium 2011-11-27 09:37:30 +00:00
parent 80e55c9775
commit 251c7fbc8d
1 changed files with 1 additions and 0 deletions

View File

@ -1588,6 +1588,7 @@ CommandCost CmdConvertRail(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3
}
}
delete iter;
return (cost.GetCost() == 0) ? error : cost;
}