summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/tmwa')
-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)