diff -r 8fad57b884a7 -r ff2dde050a4c src/ai/api/ai_transactionmode.cpp --- a/src/ai/api/ai_transactionmode.cpp Tue Mar 27 10:17:47 2007 +0000 +++ b/src/ai/api/ai_transactionmode.cpp Tue Mar 27 10:22:39 2007 +0000 @@ -62,6 +62,11 @@ /* Make sure we are stopped */ this->Stop(); + /* Remove the costs this transaction costs from the total costs, so any + * 'accounting' running on the background will get the real costs for + * executing, and not the double value of both testing and executing */ + this->IncreaseDoCommandCosts(-this->GetCosts()); + /* Switch to a forced execute mode */ AIExecMode exec;