fix: channel id in PLAYER_EVENT_ON_CHANNEL_CHAT (#101)

This commit is contained in:
Axel Cocat
2023-03-01 10:51:29 +01:00
committed by GitHub
parent 2d915de6bc
commit f126d4d828
3 changed files with 3 additions and 3 deletions

View File

@@ -509,7 +509,7 @@ bool Eluna::OnChat(Player* pPlayer, uint32 type, uint32 lang, std::string& msg,
Push(msg);
Push(type);
Push(lang);
Push(pChannel->GetChannelId());
Push(pChannel->IsConstant() ? static_cast<int32>(pChannel->GetChannelId()) : -static_cast<int32>(pChannel->GetChannelDBId()));
int n = SetupStack(PlayerEventBindings, key, 5);
while (n > 0)