From 6b8237876e2a97bbd3f59d03a105aa03b5b7eac3 Mon Sep 17 00:00:00 2001 From: "False.Genesis" Date: Thu, 11 Jan 2007 18:15:37 +0000 Subject: [PATCH] forgot something --- src/Client/World/WorldSession.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Client/World/WorldSession.cpp b/src/Client/World/WorldSession.cpp index b23ba8e..70c6de0 100644 --- a/src/Client/World/WorldSession.cpp +++ b/src/Client/World/WorldSession.cpp @@ -425,9 +425,9 @@ void WorldSession::_HandleMessageChatOpcode(WorldPacket& recvPacket) } if(type==CHAT_MSG_WHISPER && !isCmd) { - defScp.variables.Set("@thiswhisper_name",plrname); - defScp.variables.Set("@thiswhisper",toString(target_guid)); - defScp.variables.Set("@thiswhisper_lang",toString((uint64)lang)); + GetInstance()->GetScripts()->variables.Set("@thiswhisper_name",plrname); + GetInstance()->GetScripts()->variables.Set("@thiswhisper",toString(target_guid)); + GetInstance()->GetScripts()->variables.Set("@thiswhisper_lang",toString((uint64)lang)); GetInstance()->GetScripts()->RunScript("_onwhisper",NULL); } }