summaryrefslogtreecommitdiffstats
path: root/src/Generating/ProtIntGen.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Generating/ProtIntGen.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Generating/ProtIntGen.h b/src/Generating/ProtIntGen.h
index 87e13c6cc..290998075 100644
--- a/src/Generating/ProtIntGen.h
+++ b/src/Generating/ProtIntGen.h
@@ -767,7 +767,7 @@ public:
if (IsBiomeOcean(above) || IsBiomeOcean(below) || IsBiomeOcean(left) || IsBiomeOcean(right))
{
// First convert the value to a regular biome (drop the M flag), then modulo by our biome count:
- val = ToBeach[(val % 128) % ARRAYCOUNT(ToBeach)];
+ val = ToBeach[static_cast<size_t>(val % 128) % ARRAYCOUNT(ToBeach)];
}
}
a_Values[x + z * a_SizeX] = val;