Skip to content

Commit

Permalink
Revert "Add extra check in parse_response_cards"
Browse files Browse the repository at this point in the history
This reverts commit 9c44670.
To be readded later, the ai currently is sending invalid data for the selection type that would fail the check
  • Loading branch information
edo9300 committed Oct 17, 2023
1 parent dd9f84e commit d9b48da
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions playerop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,6 @@ namespace {
template<typename ReturnType>
bool parse_response_cards(ProgressiveBuffer& returns, return_card_generic<ReturnType>& return_cards, const std::vector<ReturnType>& select_cards, bool cancelable) {
auto type = returns.at<int32_t>(0);
//allowed values are from -1 to 3
if(static_cast<uint32_t>(type + 1) > 4)
return false;
if(type == -1) {
if(cancelable) {
return_cards.canceled = true;
Expand Down

0 comments on commit d9b48da

Please sign in to comment.