idek if ill keep this but yeah

This commit is contained in:
David Markowitz
2023-07-11 00:02:59 -07:00
parent 8678ed03c3
commit a37ec326b9
6 changed files with 118 additions and 108 deletions

View File

@@ -2752,7 +2752,7 @@ void GameMessages::HandlePropertyEntranceSync(RakNet::BitStream* inStream, Entit
bool updateUi{};
int32_t numResults{};
int32_t reputation{};
int32_t sortMethod{};
ePropertySortType sortMethod{};
int32_t startIndex{};
uint32_t filterTextLength{};
std::string filterText{};
@@ -2769,15 +2769,14 @@ void GameMessages::HandlePropertyEntranceSync(RakNet::BitStream* inStream, Entit
for (auto i = 0u; i < filterTextLength; i++) {
char c;
inStream->Read(c);
filterText.push_back(c);
if (inStream->Read(c)) filterText.push_back(c);
}
auto* player = Player::GetPlayer(sysAddr);
auto* entranceComponent = entity->GetComponent<PropertyEntranceComponent>();
if (entranceComponent == nullptr) return;
if (!entranceComponent) return;
entranceComponent->OnPropertyEntranceSync(player,
includeNullAddress,