Dreamseeker crashes on start if world.maxz is reduced on world/New()
I attempted to use dreammaker run or running .dmb directly, I didn't use dream daemon in my tests.
Numbered Steps to Reproduce Problem:
1. Run a game with the below snippet
Code Snippet (if applicable) to Reproduce Problem:
world
New()
..()
world.maxz = 1
Expected Results:
World to run with reduced maxz
Actual Results:
Crash
Does the problem occur:
Every time? Or how often? Every time
In other games? Yes
In other user accounts? Yes
On other computers? Didn't try
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
Build 508.1289 works fine, crash occurs from 508.1290 and above. It also doesn't happen if you wait a bit before reducing world.maxz.
Version 508.1299
*** Error in `DreamDaemon': free(): corrupted unsorted chunks: 0x0ad0d9e0 ***
Downgrading to 507.1286 fixes it. Will try and get a test case later on. Bed time!