I've tried to reproduce this crash, but I can't get it to happen. Also, looking at the code, I have no idea how this could happen under normal conditions (like, not having a level bigger than 20x20 or something), even when shrinking a level and undoing that.
So could you tell me in more detail what you did? As far as I understand, you shrunk the level, then undid that, did Ved immediately crash? What size were you shrinking down to what size? Do you know what room you were looking at? You also mentioned a room being deleted, but in what way was it deleted?
Idea status:
under consideration
Comments
ssv, 07.04.2018, 03:41
the room was automatically deleted because it was in an area that was cropped off when the level was shrunk. ved immediately crashed after i undid. i think i went from 20x20 to 5x20. all i remember is that i was looking at the room that was about to be deleted.
The error would indicate that either tile data or metadata for rooms is being deleted *completely*, which never even happens (not when shrinking a level either, Ved never really deletes rooms when shrinking a level. Unless you either open a new level or save and reload it, of course, but then the undo/redo stacks are also cleared.) And every time I've tried this, the room came back/was still there after undoing the shrink, and Ved didn't crash. I've looked at all relevant code and nothing seems like it could have caused a crash.
I'd love to be able to solve this, but the cause remains undetermined on this one.