diff options
-rw-r--r-- | source/game/StarNetworkedAnimator.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source/game/StarNetworkedAnimator.cpp b/source/game/StarNetworkedAnimator.cpp index 6ea3053..8dd4240 100644 --- a/source/game/StarNetworkedAnimator.cpp +++ b/source/game/StarNetworkedAnimator.cpp @@ -1265,8 +1265,6 @@ void NetworkedAnimator::setupNetStates() { for (auto& pair : m_stateInfo) { pair.second.wasUpdated = true; - pair.second.reverse.setCompatibilityVersion(8); - addNetElement(&pair.second.reverse); addNetElement(&pair.second.stateIndex); addNetElement(&pair.second.startedEvent); } @@ -1341,6 +1339,13 @@ void NetworkedAnimator::setupNetStates() { for (auto& pair : m_effects) addNetElement(&pair.second.enabled); + + // all new net elements must be added at the end of netgroups to not interfere with load order for communicating with retail clients + for (auto& pair : m_stateInfo) { + pair.second.reverse.setCompatibilityVersion(8); + addNetElement(&pair.second.reverse); + } + } void NetworkedAnimator::netElementsNeedLoad(bool initial) { |