Interrupt / delverengine

Delver game engine and editor
zlib License
803 stars 79 forks source link

Some levels crash the editor #207

Closed SuperPinger closed 3 years ago

SuperPinger commented 3 years ago

The crash occurs upon saving and exiting the play mode. This applies mostly to example levels included in the game, the cause of the issue is unknown so far. Examples include: beerhall.dat; collision.dat; spikes.bin; quarry.bin; slimeking.dat; directionalspikes.bin and possibly others.

joshuaskelly commented 3 years ago

This appears to be happening because the deserialized level has a null tileMaterials field and results in an NRE. This might be an issue with older levels?

Might be able to address this by creating a new array if it is null?