mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-27 01:00:13 +00:00
Fix crash in character creation by deferring callback to next update
The charCreateCallback was firing synchronously during ImGui render, causing a state transition before the create screen's ImGui::End() was called. Defer the callback to GameHandler::update() and ensure update() runs during CHARACTER_CREATION and CHARACTER_SELECTION states.
This commit is contained in:
parent
0451c82661
commit
776a617f61
3 changed files with 21 additions and 5 deletions
|
|
@ -525,6 +525,9 @@ private:
|
|||
WorldConnectSuccessCallback onSuccess;
|
||||
WorldConnectFailureCallback onFailure;
|
||||
CharCreateCallback charCreateCallback_;
|
||||
bool pendingCharCreateResult_ = false;
|
||||
bool pendingCharCreateSuccess_ = false;
|
||||
std::string pendingCharCreateMsg_;
|
||||
|
||||
// ---- XP tracking ----
|
||||
uint32_t playerXp_ = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue