summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-16 14:12:38 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-16 14:12:38 +0300
commit904ab7f6570a7f9836a7a11fa127b411c75e8923 (patch)
tree688bbc68c37365573b4950c6d8c702c1abd973fc /src
parent719eb7581f940c31ae731d420b16b7cd4dc638ae (diff)
downloadmv-904ab7f6570a7f9836a7a11fa127b411c75e8923.tar.gz
mv-904ab7f6570a7f9836a7a11fa127b411c75e8923.tar.bz2
mv-904ab7f6570a7f9836a7a11fa127b411c75e8923.tar.xz
mv-904ab7f6570a7f9836a7a11fa127b411c75e8923.zip
Fix reading int64 from server.
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/messagein.cpp2
-rw-r--r--src/net/tmwa/messagein.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/net/eathena/messagein.cpp b/src/net/eathena/messagein.cpp
index db3eb1889..e24134a72 100644
--- a/src/net/eathena/messagein.cpp
+++ b/src/net/eathena/messagein.cpp
@@ -87,7 +87,7 @@ int32_t MessageIn::readInt32(const char *const str)
int64_t MessageIn::readInt64(const char *const str)
{
- int32_t value = -1;
+ int64_t value = -1;
if (mPos + 8 <= mLength)
{
#if SDL_BYTEORDER == SDL_BIG_ENDIAN
diff --git a/src/net/tmwa/messagein.cpp b/src/net/tmwa/messagein.cpp
index 8fe50249a..214540483 100644
--- a/src/net/tmwa/messagein.cpp
+++ b/src/net/tmwa/messagein.cpp
@@ -87,7 +87,7 @@ int32_t MessageIn::readInt32(const char *const str)
int64_t MessageIn::readInt64(const char *const str)
{
- int32_t value = -1;
+ int64_t value = -1;
if (mPos + 8 <= mLength)
{
#if SDL_BYTEORDER == SDL_BIG_ENDIAN