const pointers

This commit is contained in:
jadebenn 2024-02-24 23:48:07 -06:00
parent 939eb6177a
commit 9f8cff83b7
2 changed files with 2 additions and 2 deletions

View File

@ -2502,7 +2502,7 @@ void GameMessages::HandleControlBehaviors(RakNet::BitStream* inStream, Entity* e
command.push_back(character);
}
auto owner = PropertyManagementComponent::Instance()->GetOwner();
auto* const owner = PropertyManagementComponent::Instance()->GetOwner();
if (!owner) return;
ControlBehaviors::Instance().ProcessCommand(entity, *amfArguments, command, owner);

View File

@ -95,7 +95,7 @@ void ControlBehaviors::UpdateAction(const AMFArrayValue& arguments) {
}
}
void ControlBehaviors::ProcessCommand(Entity* modelEntity, const AMFArrayValue& arguments, std::string_view command, Entity* modelOwner) {
void ControlBehaviors::ProcessCommand(Entity* modelEntity, const AMFArrayValue& arguments, const std::string_view command, Entity* const modelOwner) {
if (!isInitialized || !modelEntity || !modelOwner) return;
auto* const modelComponent = modelEntity->GetComponent<ModelComponent>();