diff options
Diffstat (limited to 'source/Protocol132.cpp')
-rw-r--r-- | source/Protocol132.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/Protocol132.cpp b/source/Protocol132.cpp index 37343e443..207266d99 100644 --- a/source/Protocol132.cpp +++ b/source/Protocol132.cpp @@ -572,12 +572,13 @@ void cProtocol132::WriteItem(const cItem & a_Item) ItemType = -1;
}
- WriteShort(ItemType);
if (a_Item.IsEmpty())
{
+ WriteShort(-1);
return;
}
+ WriteShort(ItemType);
WriteByte (a_Item.m_ItemCount);
WriteShort(a_Item.m_ItemDamage);
|