Fixed a potential bug

in the forest mapgen code, adding a tree to the array would result in something else not spawning since the parsing was based on a static number rather than the array length.

feel free to point out a better solution, as i'm still pretty new to c++
(i did not use the size() function to avoid including <array>)