builtin/ground_plane_lighting: Catch common nullptr dereference

master
Perttu Ahola 2014-10-30 03:30:36 +02:00
parent e78aad642b
commit cb0f3f1d77
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ struct CInstance: public ground_plane_lighting::Instance
voxelworld::access(m_server, [&](voxelworld::Interface *ivoxelworld)
{
voxelworld::Instance *world =
ivoxelworld->get_instance(m_scene_ref);
check(ivoxelworld->get_instance(m_scene_ref));
interface::VoxelRegistry *voxel_reg = world->get_voxel_reg();
//const auto &chunk_size_voxels = world->get_chunk_size_voxels();
pv::Region chunk_region =