diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-07-14 22:44:37 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-07-14 22:44:37 +0300 |
commit | e1841e31c606f1d97ea54c3f00f3380db814f3d2 (patch) | |
tree | fa9c9b178fe5ba9ca931e67332aef016efa95145 /src/net/tmwa/buysellhandler.cpp | |
parent | 72938b640199d03d6092366224d3927d5d2a33b9 (diff) | |
download | manaverse-e1841e31c606f1d97ea54c3f00f3380db814f3d2.tar.gz manaverse-e1841e31c606f1d97ea54c3f00f3380db814f3d2.tar.bz2 manaverse-e1841e31c606f1d97ea54c3f00f3380db814f3d2.tar.xz manaverse-e1841e31c606f1d97ea54c3f00f3380db814f3d2.zip |
Rename readInt8 into readUInt8 because it really read uint8_t.
Diffstat (limited to 'src/net/tmwa/buysellhandler.cpp')
-rw-r--r-- | src/net/tmwa/buysellhandler.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/tmwa/buysellhandler.cpp b/src/net/tmwa/buysellhandler.cpp index a51e0c7b1..b59d0f1f9 100644 --- a/src/net/tmwa/buysellhandler.cpp +++ b/src/net/tmwa/buysellhandler.cpp @@ -106,11 +106,11 @@ void BuySellHandler::processNpcBuy(Net::MessageIn &msg) { const int value = msg.readInt32(); msg.readInt32(); // DCvalue - msg.readInt8(); // type + msg.readUInt8(); // type const int itemId = msg.readInt16(); - unsigned char color = 1; + uint8_t color = 1; if (serverVersion > 0) - color = msg.readInt8(); + color = msg.readUInt8(); mBuyDialog->addItem(itemId, color, 0, value); } mBuyDialog->sort(); @@ -118,7 +118,7 @@ void BuySellHandler::processNpcBuy(Net::MessageIn &msg) void BuySellHandler::processNpcSellResponse(Net::MessageIn &msg) { - switch (msg.readInt8()) + switch (msg.readUInt8()) { case 0: NotifyManager::notify(NotifyTypes::SOLD); |