From 311c175f3184103950c72bc5c775174597430b83 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 14 Jul 2017 01:31:22 +0300 Subject: Replace std::vector into macro STD_VECTOR. In most case it equal to std::vector except debug modes. Now it can be also mse::mstd::vector, but sadly this class not support all required features. --- src/net/eathena/inventoryhandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/net/eathena/inventoryhandler.cpp') diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp index 74b0777e0..ed9296a8b 100644 --- a/src/net/eathena/inventoryhandler.cpp +++ b/src/net/eathena/inventoryhandler.cpp @@ -558,13 +558,13 @@ void InventoryHandler::identifyItem(const Item *const item) const "item index"); } -void InventoryHandler::mergeItemsAck(const std::vector &items) const +void InventoryHandler::mergeItemsAck(const STD_VECTOR &items) const { createOutPacket(CMSG_MERGE_ITEM_ACK); const size_t sz = items.size(); outMsg.writeInt16(CAST_S16(sz * 2 + 4), "len"); - FOR_EACH (std::vector::const_iterator, it, items) + FOR_EACH (STD_VECTOR::const_iterator, it, items) { outMsg.writeInt16(CAST_S16((*it)->getInvIndex() + 2), "item index"); -- cgit v1.2.3-60-g2f50