summaryrefslogtreecommitdiff
path: root/src/net/tradehandler.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <bertram@cegetel.net>2006-02-05 19:00:43 +0000
committerYohann Ferreira <bertram@cegetel.net>2006-02-05 19:00:43 +0000
commit851ca8b9be55db5d2d2f596097f6196ef5ef6c0b (patch)
tree058a136c8e5ae206a0a81a15a3a5f9dee6581067 /src/net/tradehandler.cpp
parent9d12db6aa73611eb221e7b6d9a522aecf8ae67cd (diff)
downloadmana-851ca8b9be55db5d2d2f596097f6196ef5ef6c0b.tar.gz
mana-851ca8b9be55db5d2d2f596097f6196ef5ef6c0b.tar.bz2
mana-851ca8b9be55db5d2d2f596097f6196ef5ef6c0b.tar.xz
mana-851ca8b9be55db5d2d2f596097f6196ef5ef6c0b.zip
Fixed a gcc 4.0 issue in the tradehandler. Strengthened the xml parser in the itemmanager so tmw doesn't crash anymore if an item lacks some parameters.
Diffstat (limited to 'src/net/tradehandler.cpp')
-rw-r--r--src/net/tradehandler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/tradehandler.cpp b/src/net/tradehandler.cpp
index 5675fab8..940c3e09 100644
--- a/src/net/tradehandler.cpp
+++ b/src/net/tradehandler.cpp
@@ -80,7 +80,8 @@ void TradeHandler::handleMessage(MessageIn *msg)
player_node->setTrading(true);
tradePartnerName = msg->readString(24);
- ConfirmDialog *dlg = new ConfirmDialog("Request for trade",
+ ConfirmDialog *dlg;
+ dlg = new ConfirmDialog("Request for trade",
tradePartnerName +
" wants to trade with you, do you accept?");
dlg->addActionListener(&requestTradeListener);