summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/inventoryhandler.cpp6
-rw-r--r--src/net/eathena/playerhandler.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp
index 8a0670765..44655d9df 100644
--- a/src/net/eathena/inventoryhandler.cpp
+++ b/src/net/eathena/inventoryhandler.cpp
@@ -124,7 +124,7 @@ void InventoryHandler::dropItem(const Item *const item, const int amount) const
outMsg.writeInt16(index, "index");
outMsg.writeInt16(CAST_S16(amount), "amount");
}
- if (packetVersion >= 20080827)
+ else if (packetVersion >= 20080827)
{
outMsg.writeInt16(0, "unknown");
outMsg.writeInt16(index, "index");
@@ -200,7 +200,7 @@ void InventoryHandler::dropItem(const Item *const item, const int amount) const
outMsg.writeInt8(0, "unknown");
outMsg.writeInt16(CAST_S16(amount), "amount");
}
- if (packetVersion >= 20041129)
+ else if (packetVersion >= 20041129)
{
outMsg.writeInt16(0, "unknown");
outMsg.writeInt16(index, "index");
@@ -223,7 +223,7 @@ void InventoryHandler::dropItem(const Item *const item, const int amount) const
outMsg.writeInt8(0, "unknown");
outMsg.writeInt16(CAST_S16(amount), "amount");
}
- if (packetVersion >= 20040920)
+ else if (packetVersion >= 20040920)
{
outMsg.writeInt32(0, "unknown");
outMsg.writeInt32(0, "unknown");
diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp
index e8045a16a..b21e9d64d 100644
--- a/src/net/eathena/playerhandler.cpp
+++ b/src/net/eathena/playerhandler.cpp
@@ -138,7 +138,7 @@ void PlayerHandler::pickUp(const FloorItem *const floorItem) const
outMsg.writeInt8(0, "unused");
outMsg.writeBeingId(id, "object id");
}
- if (packetVersion >= 20050628)
+ else if (packetVersion >= 20050628)
{
outMsg.writeInt32(0, "unused");
outMsg.writeInt8(0, "unused");