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); } // ------------------------------------------------------------------------------------------------