summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/buysellhandler.cpp1
-rw-r--r--src/net/tmwa/buysellhandler.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/net/eathena/buysellhandler.cpp b/src/net/eathena/buysellhandler.cpp
index 361fe89a0..bd9264415 100644
--- a/src/net/eathena/buysellhandler.cpp
+++ b/src/net/eathena/buysellhandler.cpp
@@ -104,6 +104,7 @@ void BuySellHandler::processNpcBuy(Net::MessageIn &msg)
const unsigned char color = 1;
mBuyDialog->addItem(itemId, color, 0, value);
}
+ mBuyDialog->sort();
}
void BuySellHandler::processNpcSellResponse(Net::MessageIn &msg) const
diff --git a/src/net/tmwa/buysellhandler.cpp b/src/net/tmwa/buysellhandler.cpp
index 4fc80acb1..de4a03631 100644
--- a/src/net/tmwa/buysellhandler.cpp
+++ b/src/net/tmwa/buysellhandler.cpp
@@ -111,6 +111,7 @@ void BuySellHandler::processNpcBuy(Net::MessageIn &msg)
color = msg.readInt8();
mBuyDialog->addItem(itemId, color, 0, value);
}
+ mBuyDialog->sort();
}
void BuySellHandler::processNpcSellResponse(Net::MessageIn &msg) const