mirror of
https://github.com/luanti-org/luanti.git
synced 2025-12-06 23:45:26 +01:00
Get rid of parent pointer in MapBlock
This commit is contained in:
@@ -26,9 +26,8 @@ typedef std::vector<MapBlock*> MBContainer;
|
||||
static void allocateSome(MBContainer &vec, u32 n)
|
||||
{
|
||||
vec.reserve(vec.size() + n);
|
||||
Map *map = reinterpret_cast<Map*>(0x1234);
|
||||
for (u32 i = 0; i < n; i++) {
|
||||
auto *mb = new MapBlock(map, {i & 0xff, 0, i >> 8}, nullptr);
|
||||
auto *mb = new MapBlock({i & 0xff, 0, i >> 8}, nullptr);
|
||||
vec.push_back(mb);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user