From 3ed7e4306f57e147c050d47bdb4abc5ea41c5797 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 23 Sep 2015 23:03:02 +0300 Subject: Fix another compilation warning. --- src/net/eathena/inventoryrecv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/net/eathena/inventoryrecv.cpp') 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++) -- cgit v1.2.3-70-g09d2