summaryrefslogtreecommitdiff
path: root/modules/gridmap/grid_map.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-06-21 12:25:18 +0200
committerGitHub <noreply@github.com>2019-06-21 12:25:18 +0200
commit02319dceb2e17184eb765c67719a306f56dafc1b (patch)
tree1f986609a5ed8ba1049ccdc57f2ba55647673b6a /modules/gridmap/grid_map.cpp
parent1e833cadbcf1403eec85fa85b290328bc1bf5179 (diff)
parentc77ff48a85e5d16b54a5b4d151f5515e56082000 (diff)
Merge pull request #29947 from qarmin/fix_some_editor_crashes
Fix some editor crashes
Diffstat (limited to 'modules/gridmap/grid_map.cpp')
-rw-r--r--modules/gridmap/grid_map.cpp1
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();
}