diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-06-21 12:25:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-21 12:25:18 +0200 |
commit | 02319dceb2e17184eb765c67719a306f56dafc1b (patch) | |
tree | 1f986609a5ed8ba1049ccdc57f2ba55647673b6a /modules/gridmap | |
parent | 1e833cadbcf1403eec85fa85b290328bc1bf5179 (diff) | |
parent | c77ff48a85e5d16b54a5b4d151f5515e56082000 (diff) |
Merge pull request #29947 from qarmin/fix_some_editor_crashes
Fix some editor crashes
Diffstat (limited to 'modules/gridmap')
-rw-r--r-- | modules/gridmap/grid_map.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gridmap/grid_map.cpp b/modules/gridmap/grid_map.cpp index 3caa7b1d12..994a84fbc4 100644 --- a/modules/gridmap/grid_map.cpp +++ b/modules/gridmap/grid_map.cpp @@ -241,6 +241,7 @@ Vector3 GridMap::get_cell_size() const { void GridMap::set_octant_size(int p_size) { + ERR_FAIL_COND(p_size == 0); octant_size = p_size; _recreate_octant_data(); } |