Properly initialize the quadrant size of maps.

This commit is contained in:
Relintai 2024-03-26 13:24:46 +01:00
parent fa68cf6872
commit 6762e597e6

View File

@ -48,6 +48,7 @@ RID VertexLights2DServer::map_create() {
VertexLightMap2D *map = memnew(VertexLightMap2D);
RID rid = map_owner.make_rid(map);
map->self = rid;
map->quadrant_size = _default_quadrant_size;
return rid;
}