Add assertion to GeoMipTerrain::get_block_node_path

This commit is contained in:
rdb 2015-06-13 13:34:03 +02:00
parent 48208b0f27
commit c85a92d378

View File

@ -385,8 +385,11 @@ get_flatten_mode() {
////////////////////////////////////////////////////////////////////
INLINE const NodePath GeoMipTerrain::
get_block_node_path(unsigned short mx, unsigned short my) {
nassertr(mx < _blocks.size(), NodePath::fail());
nassertr(my < _blocks[mx].size(), NodePath::fail());
return _blocks[mx][my];
}
////////////////////////////////////////////////////////////////////
// Function: GeoMipTerrain::get_block_from_pos
// Access: Published