(svn r19643) -Fix (r19120): Industry generation failed for large maps and lots of industry types.

This commit is contained in:
frosch
2010-04-16 21:21:54 +00:00
parent d1c3234918
commit 2141ca2368
3 changed files with 5 additions and 2 deletions

View File

@@ -99,8 +99,9 @@ void SetRandomSeed(uint32 seed);
return _random.Next();
}
static FORCEINLINE uint32 RandomRange(uint16 max)
static FORCEINLINE uint32 RandomRange(uint max)
{
assert(max <= UINT16_MAX);
return _random.Next(max);
}
#endif