IRollbackReportSink *rollback = gamedef->rollback();
// If source is not infinite, record item take
- if(!src_can_take_count != -1){
+ if(src_can_take_count != -1){
RollbackAction action;
std::string loc;
{
rollback->reportAction(action);
}
// If destination is not infinite, record item put
- if(!dst_can_put_count != -1){
+ if(dst_can_put_count != -1){
RollbackAction action;
std::string loc;
{
IRollbackReportSink *rollback = gamedef->rollback();
// If source is not infinite, record item take
- if(!src_can_take_count != -1){
+ if(src_can_take_count != -1){
RollbackAction action;
std::string loc;
{