Skip to content

Commit

Permalink
Attempt to resolve the issue with counters
Browse files Browse the repository at this point in the history
  • Loading branch information
StormWulf committed Feb 5, 2017
1 parent f5fa5f8 commit 74e641c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gframe/duelclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3218,7 +3218,7 @@ void DuelClient::SetResponseI(int respI) {
*((int*)response_buf) = respI;
response_len = 4;
}
void DuelClient::SetResponseB(unsigned char * respB, unsigned char len) {
void DuelClient::SetResponseB(void* respB, unsigned char len) {
memcpy(response_buf, respB, len);
response_len = len;
}
Expand Down
2 changes: 1 addition & 1 deletion gframe/duelclient.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class DuelClient {
static void HandleSTOCPacketLan(char* data, unsigned int len);
static int ClientAnalyze(char* msg, unsigned int len);
static void SetResponseI(int respI);
static void SetResponseB(unsigned char* respB, unsigned char len);
static void SetResponseB(void* respB, unsigned char len);
static void SendResponse();
static void SendPacketToServer(unsigned char proto) {
char* p = duel_client_write;
Expand Down
2 changes: 1 addition & 1 deletion gframe/event_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
myswprintf(formatBuffer, L"%d", select_min);
mainGame->stCardPos[id - BUTTON_CARD_0]->setText(formatBuffer);
if(select_min == select_max) {
unsigned char respbuf[64];
unsigned short int respbuf[32];
for(int i = 0; i < select_max; ++i)
respbuf[i] = sort_list[i] - 1;
DuelClient::SetResponseB(respbuf, select_max);
Expand Down

0 comments on commit 74e641c

Please sign in to comment.