Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(net/five): re-register global state bag on reset
  • Loading branch information
blattersturm committed Feb 5, 2021
1 parent 48beb3a commit f58169d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/components/gta-net-five/src/CloneManager.cpp
Expand Up @@ -466,6 +466,10 @@ void CloneManagerLocal::Reset()
m_serverSendFrame = 0;

m_sbac->Reset();

// re-add the global bag, since Reset() removes it
m_globalBag = {}; // first unset, as the handle keeps by name and otherwise we'd remove it due to destruction order
m_globalBag = m_sbac->RegisterStateBag("global");
}

void CloneManagerLocal::ProcessCreateAck(uint16_t objId, uint16_t uniqifier)
Expand Down

0 comments on commit f58169d

Please sign in to comment.