summaryrefslogtreecommitdiff
path: root/src/gui/tradewindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-06-07 23:10:10 +0300
committerAndrei Karas <akaras@inbox.ru>2013-06-07 23:10:22 +0300
commite59e3ea04af6edc38a686df2ed4be440fb5d6682 (patch)
tree587f0115f98fd2f1b4e844a85da6d0f3e60cc6af /src/gui/tradewindow.cpp
parent4f8e8c36290e46c00fa0266c4e4af553fac59a4c (diff)
downloadplus-e59e3ea04af6edc38a686df2ed4be440fb5d6682.tar.gz
plus-e59e3ea04af6edc38a686df2ed4be440fb5d6682.tar.bz2
plus-e59e3ea04af6edc38a686df2ed4be440fb5d6682.tar.xz
plus-e59e3ea04af6edc38a686df2ed4be440fb5d6682.zip
add fixes after autochecks.
Diffstat (limited to 'src/gui/tradewindow.cpp')
-rw-r--r--src/gui/tradewindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/tradewindow.cpp b/src/gui/tradewindow.cpp
index 2e5d026b2..3c1ce60bb 100644
--- a/src/gui/tradewindow.cpp
+++ b/src/gui/tradewindow.cpp
@@ -223,7 +223,8 @@ void TradeWindow::increaseQuantity(const int index, const bool own,
item = mMyInventory->getItem(index);
else
item = mPartnerInventory->getItem(index);
- item->increaseQuantity(quantity);
+ if (item)
+ item->increaseQuantity(quantity);
}
void TradeWindow::reset()