Closed arthurtilly closed 4 months ago
Actually wait, I'm not 100% convinced this is safe. What happens if your cell doesn't have any surfaces in it? Normally this would mean that your next entry is null, but is it actually possible for the head pointer to be null in this case?
why would it not be possible for the head pointer to be null. (*cells)[SPATIAL_PARTITION_FLOORS] = NULL;
Okay I looked at it a bit more and I don't actually see anywhere where the surface partition lists are even being written to to begin with (apart from the NULL cases). Did you actually test this?
?? ofc i tested it it works fine lol, theyre written in the same places they usually are
Maybe I'm just blind but I don't see how those pointers could be set to any value other than NULL
I'm just gonna merge this, I doubt anybody else is gonna review it and if it really is broken, I'd rather find that out sooner than later
Lol