Skip to content

Commit

Permalink
fix compile error.
Browse files Browse the repository at this point in the history
  • Loading branch information
hzqst committed Jul 21, 2024
1 parent e0aecb6 commit 0abc47a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CGALib/packdata.h
Original file line number Diff line number Diff line change
Expand Up @@ -1884,7 +1884,7 @@ namespace msgpack {
v.index = o.via.array.ptr[0].as<int>();
v.name = o.via.array.ptr[1].as<std::string>();
for (int i = 0; i < 10; ++i)
v.msgs[i] = o.via.array.ptr[2 + i].as<tCard_Recv_Msg>();
v.msgs[i] = o.via.array.ptr[2 + i].as<cga_card_recv_msg_payload_t>();
return o;
}
};
Expand Down
1 change: 0 additions & 1 deletion build-boost.bat
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,4 @@ if exist "%InstallDir%\Common7\Tools\vsdevcmd.bat" (
b2 --toolset=msvc-14.2 --with-date_time --with-thread --with-container --with-system --with-locale --with-serialization --with-regex --stagedir="stage" link=static stage
b2 --toolset=msvc-14.2 --with-date_time --with-thread --with-container --with-system --with-locale --with-serialization --with-regex --stagedir="stage" runtime-link=static link=static stage

pause
)
5 changes: 3 additions & 2 deletions cgahook/gameservice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,8 @@ void CGAService::NewNET_ParseTradeItemsPackets(int a1, const char *buf)
itempos,
level,
type,
false
false,
0
);
}

Expand Down Expand Up @@ -4798,7 +4799,7 @@ void CGAService::WM_GetItemsInfo(cga_items_info_t *info)
(*g_playerBase)->iteminfos[itempos].level,
(*g_playerBase)->iteminfos[itempos].type,
(*g_playerBase)->iteminfos[itempos].assessed ? true : false,
(*g_playerBase)->iteminfos[itempos].access_flags
(*g_playerBase)->iteminfos[itempos].assess_flags
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion cgahook/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ LRESULT CALLBACK NewWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPara
g_CGAService.WM_GetCardsInfo((CGA::cga_cards_info_t *)wParam);
return 1;
case WM_CGA_GET_CARDS_RECV_MSG:
g_CGAService.WM_GetCardsRecvMsg((CGA::cga_cards_recv_msg_t*)wParam);
g_CGAService.WM_GetCardsRecvMsg((CGA::cga_cards_recv_msgs_t*)wParam);
return 1;
case WM_CGA_PLAY_GESTURE:
g_CGAService.WM_PlayGesture((int)wParam);
Expand Down

0 comments on commit 0abc47a

Please sign in to comment.