fix: fix bug data send from server.

This commit is contained in:
Tungdv
2025-10-11 11:46:16 +07:00
parent 3af8d968f1
commit d00efc44a8
+2 -2
View File
@@ -549,13 +549,13 @@ public class CECHostPlayer : EC_Player
// Message MSG_HST_SELTARGET handler
void OnMsgHstSelTarget(ECMSG Msg)
{
if ((int)Msg.dwParam2 == CommandID.SELECT_TARGET)
if (Convert.ToInt32(Msg.dwParam2) == CommandID.SELECT_TARGET)
{
cmd_select_target pCmd = (cmd_select_target)Msg.dwParam1;
m_idSelTarget = pCmd.idTarget;
m_idUCSelTarget = 0;
}
else if ((int)Msg.dwParam2 == CommandID.UNSELECT)
else if (Convert.ToInt32(Msg.dwParam2) == CommandID.UNSELECT)
{
m_idSelTarget = 0;
}