Skip to content

Commit

Permalink
made changes according to feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jadebenn committed Dec 14, 2024
1 parent 8b9d86b commit e9e7951
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dScripts/02_server/Map/AG/NpcAgCourseStarter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ void NpcAgCourseStarter::OnUse(Entity* self, Entity* user) {

const auto selfId = self->GetObjectID();
const auto userId = user->GetObjectID();
const auto userSysAddr = user->GetSystemAddress();
const auto& userSysAddr = user->GetSystemAddress();

if (scriptedActivityComponent->GetActivityPlayerData(userId) != nullptr) {
GameMessages::SendNotifyClientObject(selfId, u"exit", 0, 0, LWOOBJID_EMPTY, "", userSysAddr);
Expand All @@ -32,7 +32,7 @@ void NpcAgCourseStarter::OnMessageBoxResponse(Entity* self, Entity* sender, int3

const auto selfId = self->GetObjectID();
const auto senderId = sender->GetObjectID();
const auto senderSysAddr = sender->GetSystemAddress();
const auto& senderSysAddr = sender->GetSystemAddress();

if (identifier == u"player_dialog_cancel_course" && button == 1) {
GameMessages::SendNotifyClientObject(selfId, u"stop_timer", 0, 0, LWOOBJID_EMPTY, "", senderSysAddr);
Expand Down Expand Up @@ -72,7 +72,7 @@ void NpcAgCourseStarter::OnFireEventServerSide(Entity* self, Entity* sender, std

const auto selfId = self->GetObjectID();
const auto senderId = sender->GetObjectID();
const auto senderSysAddr = sender->GetSystemAddress();
const auto& senderSysAddr = sender->GetSystemAddress();

auto* const data = scriptedActivityComponent->GetActivityPlayerData(senderId);
if (!data) return;
Expand Down

0 comments on commit e9e7951

Please sign in to comment.