(svn r10301) -Fix [FS#901, YAPF]: another assert violation in some special cases (immeR)

This commit is contained in:
KUDr
2007-06-24 13:18:54 +00:00
parent 331c9eec7b
commit db6710fb16
6 changed files with 303 additions and 151 deletions

View File

@@ -252,7 +252,7 @@ protected:
public:
/** Helper for pathfinders - get min/max speed on the m_old_tile/m_old_td */
int GetSpeedLimit(int *pmin_speed = NULL)
int GetSpeedLimit(int *pmin_speed = NULL) const
{
int min_speed = 0;
int max_speed = INT_MAX; // no limit