mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 00:32:57 -04:00
Add assertion to GeoMipTerrain::get_block_node_path
This commit is contained in:
parent
48208b0f27
commit
c85a92d378
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user