nemaara/A_New_Order

Switching between scenarios with the `:cl` debug command in the in-game console should always work without error

Opened this issue · 1 comments

Copying this over from #163:
When skipping from S04 ("Battle of Barnon") to S05 ("The Swamp Things") with the in-game :cl command, I get:

20240103 01:29:55 info wml: A [recall] tag with the following content failed:
show = no
side = 1
x = 1
y = 1
20240103 01:29:57 error wml: [unstore_unit]: variable 'ano_reme_stored' doesn't contain unit data

We should probably check to make sure that proper cleanup happens even in debug mode. I think that Iris has some code in IftU/AtS to handle situations like this that we could look at for inspiration.

I attempted to address this in #194 a bit, but it didn't really work...