clarified variable name

This commit is contained in:
EmosewaMC 2022-03-30 21:58:43 -07:00
parent 8462068a05
commit e66421d34f

View File

@ -206,8 +206,8 @@ void PropertyEntranceComponent::OnPropertyEntranceSync(Entity* entity, bool incl
const auto propertyId = propertyEntry->getUInt64(1); const auto propertyId = propertyEntry->getUInt64(1);
const auto owner = propertyEntry->getInt(2); const auto owner = propertyEntry->getInt(2);
const auto cloneId = propertyEntry->getUInt64(4); const auto cloneId = propertyEntry->getUInt64(4);
const auto name = propertyEntry->getString(5).asStdString(); const auto propertyNameFromDb = propertyEntry->getString(5).asStdString();
const auto description = propertyEntry->getString(6).asStdString(); const auto propertyDescriptionFromDb = propertyEntry->getString(6).asStdString();
const auto privacyOption = propertyEntry->getInt(9); const auto privacyOption = propertyEntry->getInt(9);
const auto modApproved = propertyEntry->getBoolean(10); const auto modApproved = propertyEntry->getBoolean(10);
const auto dateLastUpdated = propertyEntry->getInt(11); const auto dateLastUpdated = propertyEntry->getInt(11);
@ -242,10 +242,8 @@ void PropertyEntranceComponent::OnPropertyEntranceSync(Entity* entity, bool incl
delete nameLookup; delete nameLookup;
nameLookup = nullptr; nameLookup = nullptr;
std::string propertyName = ""; std::string propertyName = propertyNameFromDb;
std::string propertyDescription = ""; std::string propertyDescription = propertyDescriptionFromDb;
propertyName = name;
propertyDescription = description;
bool isBestFriend = false; bool isBestFriend = false;
bool isFriend = false; bool isFriend = false;