diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/BlockID.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/BlockID.cpp b/source/BlockID.cpp index 99f8cb1d1..654a55e63 100644 --- a/source/BlockID.cpp +++ b/source/BlockID.cpp @@ -86,6 +86,7 @@ public: { a_Item.m_ItemDamage = 0; } + a_Item.m_ItemCount = 1; return true; } @@ -107,6 +108,7 @@ public: } if (Split.size() < 2) { + a_Item.m_ItemCount = 1; return true; } a_Item.m_ItemDamage = atoi(Split[1].c_str()); @@ -115,7 +117,7 @@ public: // Parsing the number failed return false; } - + a_Item.m_ItemCount = 1; return true; } |