Draft: Fix bug that was causing floating dialogs states to save incorrectly
-
Fixes #3027 (closed)Split out to separate MR - Fixes bug where dialogs sharing the same state wouldn't save their states properly to
dialog-state-ex.ini
when exiting - Refactor code by renaming a function and formatting it with the help of
clang-format
- Since floating dialog states are almost always saved and read in a sorted fashion, we can use
std::map::emplace_hint
to make smarter insertions.
Edited by aadilshabier