Core/Tools: Fix logic fail for mmaps generator (thx armano2)
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user