Suppress compiler warning
authorCraig Robbins <kde.psych@gmail.com>
Thu, 18 Dec 2014 09:29:04 +0000 (19:29 +1000)
committerCraig Robbins <kde.psych@gmail.com>
Thu, 18 Dec 2014 09:29:04 +0000 (19:29 +1000)
src/mg_biome.cpp

index afe84e6d86fa7ffe311f0f217e79c12eef4677a9..a3a6d5128ec2ee571b8eb7aba96d4999d6f3ff8c 100644 (file)
@@ -72,7 +72,7 @@ BiomeManager::~BiomeManager()
 void BiomeManager::calcBiomes(s16 sx, s16 sy, float *heat_map,
        float *humidity_map, s16 *height_map, u8 *biomeid_map)
 {
-       for (size_t i = 0; i != sx * sy; i++)
+       for (s32 i = 0; i != sx * sy; i++)
                biomeid_map[i] = getBiome(heat_map[i], humidity_map[i], height_map[i])->id;
 }