(svn r15685) -Fix [FS#2720]: do not crash when someone substitutes the "map generation" sprites with garbage.

This commit is contained in:
rubidium
2009-03-12 14:21:18 +00:00
parent cef662825b
commit 3d780608a2
3 changed files with 13 additions and 5 deletions

View File

@@ -352,7 +352,7 @@ static void GrayscaleToMapHeights(uint img_width, uint img_height, byte *map)
* This function takes care of the fact that land in OpenTTD can never differ
* more than 1 in height
*/
static void FixSlopes()
void FixSlopes()
{
uint width, height;
int row, col;