diff options
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/ea/tradehandler.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/ea/tradehandler.cpp b/src/net/ea/tradehandler.cpp index cb62ec3bb..01bbeb45e 100644 --- a/src/net/ea/tradehandler.cpp +++ b/src/net/ea/tradehandler.cpp @@ -53,9 +53,10 @@ namespace void action(const gcn::ActionEvent &event) { confirmDlg = nullptr; - if (event.getId() == "ignore") + const std::string &eventId = event.getId(); + if (eventId == "ignore") player_relations.ignoreTrade(tradePartnerName); - Net::getTradeHandler()->respond(event.getId() == "yes"); + Net::getTradeHandler()->respond(eventId == "yes"); } } listener; } |