summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-09-23 23:03:02 +0300
committerAndrei Karas <akaras@inbox.ru>2015-09-23 23:03:02 +0300
commit3ed7e4306f57e147c050d47bdb4abc5ea41c5797 (patch)
tree44c6f5f32c5bb3fa8499a9bbc37ae434ba5885c5 /src/net
parentc910148e2f4ca8f19ad38aac7bf4fd5813aab38a (diff)
downloadmv-3ed7e4306f57e147c050d47bdb4abc5ea41c5797.tar.gz
mv-3ed7e4306f57e147c050d47bdb4abc5ea41c5797.tar.bz2
mv-3ed7e4306f57e147c050d47bdb4abc5ea41c5797.tar.xz
mv-3ed7e4306f57e147c050d47bdb4abc5ea41c5797.zip
Fix another compilation warning.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/inventoryrecv.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/eathena/inventoryrecv.cpp b/src/net/eathena/inventoryrecv.cpp
index 33f98289a..5cd362b14 100644
--- a/src/net/eathena/inventoryrecv.cpp
+++ b/src/net/eathena/inventoryrecv.cpp
@@ -475,7 +475,7 @@ void InventoryRecv::processPlayerStorageEquip(Net::MessageIn &msg)
sz = 57;
else
sz = 31;
- const int number = (msg.getLength() - 4 - 24) / 31;
+ const int number = (msg.getLength() - 4 - 24) / sz;
msg.readString(24, "storage name");
for (int loop = 0; loop < number; loop++)