From 89bd8a3cd766033c3ce6fe7a6f72a23b37639d54 Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Thu, 14 Jul 2016 23:46:57 +0300 Subject: [PATCH] Fix private message event calling the regular chat message finction instead. Should close #15 --- source/CoreEvents.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/CoreEvents.cpp b/source/CoreEvents.cpp index 5ba79878..97a8fc6e 100644 --- a/source/CoreEvents.cpp +++ b/source/CoreEvents.cpp @@ -552,7 +552,7 @@ void Core::EmitPlayerPrivateMessage(Int32 player_id, Int32 target_player_id, CCS PlayerInst & _player = m_Players.at(player_id); PlayerInst & _receiver = m_Players.at(target_player_id); Emit(_player.mOnMessage,_receiver.mObj, message); - Emit(mOnPlayerMessage, _player.mObj, _receiver.mObj, message); + Emit(mOnPlayerPrivateMessage, _player.mObj, _receiver.mObj, message); } // ------------------------------------------------------------------------------------------------