Update Core::top_viewscreen before calling state change handlers
This was previously done right before SC_VIEWSCREEN_CHANGED events were handled, meaning that code handling earlier events that used top_viewscreen (rather than getCurViewscreen()) could refer to an invalid viewscreen, i.e. in the tick after it was deleted. Fixes #747develop
parent
9273c177c1
commit
875ecf7827
Loading…
Reference in New Issue