Jump to content

Infinite loop in forest_map.lua


Arcwell
  • Pending

Lines 705-707 of forest_map.lua:

while reservedindex == endidx or reservedindex == startidx do
	reservedindex = math.random(1,#xs)
end

If xs has a size of 2, this will loop forever and result in the world never generating.

This can be seen on the following caves seed: 271881995


Steps to Reproduce

Try generating caves seed 271881995




User Feedback


There are no comments to display.



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...