diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-03-11 11:34:43 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-03-11 11:34:43 -0600 |
commit | a3d675e1dde4c80e687c7264bc86c6189c13dddb (patch) | |
tree | 6793b8fee2204b7dd768a54fc4ad16476f0ea272 /src/gui/trade.cpp | |
parent | 7af746a8ce0c64932923419c5a35a25a5b8c4005 (diff) | |
download | mana-a3d675e1dde4c80e687c7264bc86c6189c13dddb.tar.gz mana-a3d675e1dde4c80e687c7264bc86c6189c13dddb.tar.bz2 mana-a3d675e1dde4c80e687c7264bc86c6189c13dddb.tar.xz mana-a3d675e1dde4c80e687c7264bc86c6189c13dddb.zip |
Don't move stuff from inventory when not visible
Diffstat (limited to 'src/gui/trade.cpp')
-rw-r--r-- | src/gui/trade.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/trade.cpp b/src/gui/trade.cpp index 2deabbf2..30604d6b 100644 --- a/src/gui/trade.cpp +++ b/src/gui/trade.cpp @@ -240,6 +240,8 @@ void TradeWindow::action(const gcn::ActionEvent &event) if (event.getId() == "add") { + if (!inventoryWindow->isVisible()) return; + if (!item) return; |