summaryrefslogtreecommitdiffstats
path: root/modules/gridmap/grid_map.cpp
diff options
context:
space:
mode:
authorqarmin <mikrutrafal54@gmail.com>2019-06-21 11:34:32 +0200
committerqarmin <mikrutrafal54@gmail.com>2019-06-21 11:34:32 +0200
commitc77ff48a85e5d16b54a5b4d151f5515e56082000 (patch)
treee8f567414baf359b0f96a589ff3c2e158818db2a /modules/gridmap/grid_map.cpp
parent5c66771e3ebccdfec55bb94ea521d2f24cb6200a (diff)
downloadredot-engine-c77ff48a85e5d16b54a5b4d151f5515e56082000.tar.gz
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();
}