summaryrefslogtreecommitdiff
path: root/src/gui/windows/chatwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-04-30 19:52:16 +0300
committerAndrei Karas <akaras@inbox.ru>2014-04-30 19:52:16 +0300
commit88c6a0aa757df0ec38bc67f2cf314f8be3efd0ce (patch)
treeb35a28cd317e2895c063749180b98edfe223c032 /src/gui/windows/chatwindow.cpp
parentc24fefa91a1416a4dad7fd97d67cefa51f9eb97c (diff)
downloadmanaverse-88c6a0aa757df0ec38bc67f2cf314f8be3efd0ce.tar.gz
manaverse-88c6a0aa757df0ec38bc67f2cf314f8be3efd0ce.tar.bz2
manaverse-88c6a0aa757df0ec38bc67f2cf314f8be3efd0ce.tar.xz
manaverse-88c6a0aa757df0ec38bc67f2cf314f8be3efd0ce.zip
Fix code style in gui.
Diffstat (limited to 'src/gui/windows/chatwindow.cpp')
-rw-r--r--src/gui/windows/chatwindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp
index 5b1eba199..1b1973f63 100644
--- a/src/gui/windows/chatwindow.cpp
+++ b/src/gui/windows/chatwindow.cpp
@@ -1452,7 +1452,8 @@ bool ChatWindow::resortChatLog(std::string line, Own own,
{
const std::string nick = line.substr(0, idx2 - 1);
line = line.substr(idx2 + 6);
- localPetEmote(nick, atoi(line.c_str()));
+ localPetEmote(nick, static_cast<uint8_t>(
+ atoi(line.c_str())));
}
// ignore other special message formats.
return false;