From 6b0f3a66e9d9bcf1332f8362208d2b68aad846b6 Mon Sep 17 00:00:00 2001 From: David Markowitz <39972741+EmosewaMC@users.noreply.github.com> Date: Fri, 11 Apr 2025 07:10:38 -0700 Subject: [PATCH] fix: session flags not being loaded every other world load (#1763) tested that news screen no longer shows up on every other world load --- dGame/Character.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dGame/Character.cpp b/dGame/Character.cpp index a1538e4d..13ac5e37 100644 --- a/dGame/Character.cpp +++ b/dGame/Character.cpp @@ -204,6 +204,7 @@ void Character::DoQuickXMLDataParse() { while (currentChild) { const auto* temp = currentChild->Attribute("v"); const auto* id = currentChild->Attribute("id"); + const auto* si = currentChild->Attribute("si"); if (temp && id) { uint32_t index = 0; uint64_t value = 0; @@ -212,6 +213,9 @@ void Character::DoQuickXMLDataParse() { value = std::stoull(temp); m_PlayerFlags.insert(std::make_pair(index, value)); + } else if (si) { + auto value = GeneralUtils::TryParse(si); + if (value) m_SessionFlags.insert(value.value()); } currentChild = currentChild->NextSiblingElement(); }