diff --git a/dGame/dGameMessages/PropertyMessages.cpp b/dGame/dGameMessages/PropertyMessages.cpp index eea80e416..25c3a6212 100644 --- a/dGame/dGameMessages/PropertyMessages.cpp +++ b/dGame/dGameMessages/PropertyMessages.cpp @@ -373,6 +373,9 @@ namespace GameMessages { } void UpdatePropertyOrModelForFilterCheck::Handle(Entity& entity, const SystemAddress& sysAddr) { + // A model's name and description (the property editor's model info window, + // LWOPropertyEditorComponent::OnUpdateModelDescription 0x00cc42e0) aren't stored yet; they must not rename the property + if (!isProperty) return; auto* property = PropertyManagementComponent::Instance(); // Only the owner names the property const auto* sender = PlayerManager::GetPlayer(sysAddr); diff --git a/dGame/dGameMessages/PropertyMessages.h b/dGame/dGameMessages/PropertyMessages.h index 6775cd143..43191a633 100644 --- a/dGame/dGameMessages/PropertyMessages.h +++ b/dGame/dGameMessages/PropertyMessages.h @@ -186,7 +186,8 @@ namespace GameMessages { int32_t renew{}; // optional }; - // Client -> server. A new name and description for the property. + // Client -> server. A new name and description for the property (isProperty) or for a placed model (worldId: its object, + // ugcId: its user model id). struct UpdatePropertyOrModelForFilterCheck : public NetGameMsg { UpdatePropertyOrModelForFilterCheck() : NetGameMsg(MessageType::Game::UPDATE_PROPERTY_OR_MODEL_FOR_FILTER_CHECK) {} void Serialize(RakNet::BitStream& bitStream) const override;