Core/Tools: Fix logic fail for mmaps generator (thx armano2)

This commit is contained in:
Vincent_Michael
2013-01-10 12:40:26 +01:00
parent 899ffde1f9
commit 1154c62b65
+1 -1
View File
@@ -235,7 +235,7 @@ namespace MMAP
if (!(lheader.flags & MAP_LIQUID_NO_HEIGHT))
{
uint8 toRead = lheader.width*lheader.height;
uint32 toRead = lheader.width * lheader.height;
liquid_map = new float [toRead];
if (fread(liquid_map, sizeof(float), toRead, mapFile) != toRead)
printf("TerrainBuilder::loadMap: Failed to read some data expected 1, read 0\n");