mirror of
https://github.com/Relintai/voxelman.git
synced 2025-01-12 15:01:09 +01:00
Fix an in-editor scene-saving related crash.
This commit is contained in:
parent
9475986ee0
commit
a2a9c1f714
@ -505,6 +505,9 @@ void VoxelWorld::set_chunks(const Vector<Variant> &chunks) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (chunk->get_voxel_world() != NULL && chunk->get_voxel_world() != this)
|
||||
continue;
|
||||
|
||||
add_chunk(chunk, chunk->get_position_x(), chunk->get_position_y(), chunk->get_position_z());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user