From 40c9c8044b7d527c1c30d44ed76ee5a8c3729b29 Mon Sep 17 00:00:00 2001 From: Alex King <89047260+Kinglykrab@users.noreply.github.com> Date: Tue, 30 Jul 2024 09:25:05 -0400 Subject: [PATCH] [Bug Fix] Fix issue with quest::echo and quest::me (#4433) --- zone/questmgr.cpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/zone/questmgr.cpp b/zone/questmgr.cpp index 96f36bc11..b3df21f1d 100644 --- a/zone/questmgr.cpp +++ b/zone/questmgr.cpp @@ -179,7 +179,12 @@ void QuestManager::ClearAllTimers() { //quest perl functions void QuestManager::echo(int colour, const char *str) { QuestManagerCurrentQuestVars(); - entity_list.MessageClose(initiator, false, 200, colour, str); + + if (!owner) { + return; + } + + entity_list.MessageClose(owner, false, 200, colour, str); } void QuestManager::say(const char *str, Journal::Options &opts) { @@ -198,9 +203,12 @@ void QuestManager::say(const char *str, Journal::Options &opts) { void QuestManager::me(const char *str) { QuestManagerCurrentQuestVars(); - if (!initiator) + + if (!owner) { return; - entity_list.MessageClose(initiator, false, 200, 10, str); + } + + entity_list.MessageClose(owner, false, 200, 10, str); } void QuestManager::summonitem(uint32 itemid, int16 charges) {