From 0442f6e579eb31c2f4dfc5831dc6356cb990dab0 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Sat, 2 Dec 2023 18:24:07 -0800 Subject: [PATCH] fix Ep3 card trade sequence --- src/SendCommands.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SendCommands.cc b/src/SendCommands.cc index 1fb8c43f..130326d5 100644 --- a/src/SendCommands.cc +++ b/src/SendCommands.cc @@ -2159,7 +2159,7 @@ void send_execute_item_trade(shared_ptr c, const vector& items } void send_execute_card_trade(shared_ptr c, const vector>& card_to_count) { - if (is_ep3(c->version())) { + if (!is_ep3(c->version())) { throw logic_error("cannot send trade cards command to non-Ep3 client"); }