1
0
forked from 0ad/0ad
0ad/binaries/data/mods/_test.gui/gui
wraitii 42e67be0ee Fix crash when pushing a page while pushing a page.
Because the page stack is a vector, if during PushPage, a new page is
pushed, the vector may re-allocate. This 'pulls the rug out' from
underneath the code stack that originally pushed, which then crashes.

To fix this, use a deque, since push/pop won't invalidate references.

Reported by: Imarok.
Based on a patch by: Imarok (tests are his)
Differential Revision: https://code.wildfiregames.com/D4037
This was SVN commit r25616.
2021-05-31 13:42:08 +00:00
..
common Fix 768c84aa46 style, add tests. 2021-01-17 15:44:14 +00:00
event Fix 768c84aa46 style, add tests. 2021-01-17 15:44:14 +00:00
hotkey Fix broken paths in d1bcce55db 2019-09-22 10:11:11 +00:00
regainFocus Fix crash when pushing a page while pushing a page. 2021-05-31 13:42:08 +00:00
gui_page.rng Fix hotkey events synching with hotkey state. 2019-09-15 12:16:28 +00:00
gui.rng Fix 768c84aa46 style, add tests. 2021-01-17 15:44:14 +00:00