@@ -1712,9 +1712,9 @@ bool DuelClient::ClientAnalyze(unsigned char* msg, int len) {
17121712 return false ;
17131713 }
17141714 case MSG_SELECT_CHAIN : {
1715- /* int selecting_player = */ BufferIO::ReadUInt8 (pbuf);
1716- int count = BufferIO::ReadUInt8 (pbuf);
1717- int specount = BufferIO::ReadUInt8 (pbuf);
1715+ /* int selecting_player = */ BufferIO::Read< uint8_t > (pbuf);
1716+ int count = BufferIO::Read< uint8_t > (pbuf);
1717+ int specount = BufferIO::Read< uint8_t > (pbuf);
17181718 /* int hint0 = */ BufferIO::ReadInt32 (pbuf);
17191719 /* int hint1 = */ BufferIO::ReadInt32 (pbuf);
17201720 int c, s, ss, desc;
@@ -1728,8 +1728,8 @@ bool DuelClient::ClientAnalyze(unsigned char* msg, int len) {
17281728 mainGame->dField .activatable_descs .clear ();
17291729 mainGame->dField .conti_cards .clear ();
17301730 for (int i = 0 ; i < count; ++i) {
1731- int flag = BufferIO::ReadUInt8 (pbuf);
1732- int forced = BufferIO::ReadUInt8 (pbuf);
1731+ int flag = BufferIO::Read< uint8_t > (pbuf);
1732+ int forced = BufferIO::Read< uint8_t > (pbuf);
17331733 flag |= forced << 8 ;
17341734 code = BufferIO::ReadInt32 (pbuf);
17351735 c = mainGame->LocalPlayer (BufferIO::Read<uint8_t >(pbuf));
@@ -2164,9 +2164,9 @@ bool DuelClient::ClientAnalyze(unsigned char* msg, int len) {
21642164 return true ;
21652165 }
21662166 case MSG_CONFIRM_CARDS : {
2167- /* int player = */ mainGame->LocalPlayer (BufferIO::ReadUInt8 (pbuf));
2168- int skip_panel = BufferIO::ReadUInt8 (pbuf);
2169- int count = BufferIO::ReadUInt8 (pbuf);
2167+ /* int player = */ mainGame->LocalPlayer (BufferIO::Read< uint8_t > (pbuf));
2168+ int skip_panel = BufferIO::Read< uint8_t > (pbuf);
2169+ int count = BufferIO::Read< uint8_t > (pbuf);
21702170 int c, s;
21712171 unsigned int code, l;
21722172 std::vector<ClientCard*> field_confirm;
0 commit comments