From d952db5e08a3f7576b44d83fcf10e1abc141a92f Mon Sep 17 00:00:00 2001 From: Andrew Krieger Date: Wed, 29 Sep 2021 18:08:42 -0700 Subject: [PATCH] Fix MXE not auto-using captured `this` in npctrace lambda --- src/npctrade.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/npctrade.cpp b/src/npctrade.cpp index a3cc56c8190be..bce3278c1dde8 100644 --- a/src/npctrade.cpp +++ b/src/npctrade.cpp @@ -713,7 +713,7 @@ bool trading_window::perform_trade( npc &np, const std::string &deal ) } } else if( ip.charges > 0 ) { - change_amount = max ? ip.charges : get_var_trade( *ip.loc.get_item(), ip.charges ); + change_amount = max ? ip.charges : this->get_var_trade( *ip.loc.get_item(), ip.charges ); if( change_amount < 1 ) { return; @@ -722,7 +722,7 @@ bool trading_window::perform_trade( npc &np, const std::string &deal ) } else { if( ip.count > 1 ) { - change_amount = max ? ip.count : get_var_trade( *ip.loc.get_item(), ip.count ); + change_amount = max ? ip.count : this->get_var_trade( *ip.loc.get_item(), ip.count ); if( change_amount < 1 ) { return;