From c77ff48a85e5d16b54a5b4d151f5515e56082000 Mon Sep 17 00:00:00 2001 From: qarmin Date: Fri, 21 Jun 2019 11:34:32 +0200 Subject: Fix some editor crashes --- modules/gridmap/grid_map.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/gridmap') 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(); } -- cgit v1.2.3