Fix some narrowing warnings

This commit is contained in:
Desour 2024-03-02 01:50:16 +01:00
parent b10797b3d5
commit cdce33dd05
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ static void allocateSome(MBContainer &vec, u32 n)
{
vec.reserve(vec.size() + n);
for (u32 i = 0; i < n; i++) {
auto *mb = new MapBlock({i & 0xff, 0, i >> 8}, nullptr);
auto *mb = new MapBlock(v3s16(i & 0xff, 0, (i >> 8) & S16_MAX), nullptr);
vec.push_back(mb);
}
}