summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-08 20:52:00 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-08 20:52:00 +0300
commitb639270b2854e2d069bbff9b888dfeb159f9b400 (patch)
tree07cafe4ccf666a63ded20a0d314004bea4b40f3e /src/net
parent196cc38da19b867eaa9419343dd6ecd8212af354 (diff)
downloadmv-b639270b2854e2d069bbff9b888dfeb159f9b400.tar.gz
mv-b639270b2854e2d069bbff9b888dfeb159f9b400.tar.bz2
mv-b639270b2854e2d069bbff9b888dfeb159f9b400.tar.xz
mv-b639270b2854e2d069bbff9b888dfeb159f9b400.zip
Fix code style.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/tmwa/npchandler.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/net/tmwa/npchandler.cpp b/src/net/tmwa/npchandler.cpp
index 856b67828..3e9fe3822 100644
--- a/src/net/tmwa/npchandler.cpp
+++ b/src/net/tmwa/npchandler.cpp
@@ -294,7 +294,10 @@ void NpcHandler::processNpcCommand(Net::MessageIn &msg, int npcId)
break;
case 6: // show avatar
if (mDialog)
- mDialog->showAvatar(msg.readInt32()); // avatar id
+ {
+ mDialog->showAvatar(static_cast<uint16_t>(
+ msg.readInt32())); // avatar id
+ }
break;
case 7: // set avatar direction
if (mDialog)