summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-05-05 22:11:48 +0200
committerHowaner <franzi.moos@googlemail.com>2014-05-05 22:11:48 +0200
commitdca3af1f0f4a047e99f19c4624c0dd0c86904734 (patch)
tree239576d89e73110ebf0f8da91303d0648199eaf3
parentFix SetRepairedItemName() in SlotArea.cpp (diff)
downloadcuberite-dca3af1f0f4a047e99f19c4624c0dd0c86904734.tar
cuberite-dca3af1f0f4a047e99f19c4624c0dd0c86904734.tar.gz
cuberite-dca3af1f0f4a047e99f19c4624c0dd0c86904734.tar.bz2
cuberite-dca3af1f0f4a047e99f19c4624c0dd0c86904734.tar.lz
cuberite-dca3af1f0f4a047e99f19c4624c0dd0c86904734.tar.xz
cuberite-dca3af1f0f4a047e99f19c4624c0dd0c86904734.tar.zst
cuberite-dca3af1f0f4a047e99f19c4624c0dd0c86904734.zip
-rw-r--r--src/Enchantments.cpp4
-rw-r--r--src/Enchantments.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/Enchantments.cpp b/src/Enchantments.cpp
index bfcde9dac..58479d729 100644
--- a/src/Enchantments.cpp
+++ b/src/Enchantments.cpp
@@ -83,9 +83,9 @@ void cEnchantments::AddFromString(const AString & a_StringSpec)
-int cEnchantments::Size(void)
+size_t cEnchantments::Size(void)
{
- return (int)m_Enchantments.size();
+ return m_Enchantments.size();
}
diff --git a/src/Enchantments.h b/src/Enchantments.h
index 82eea53f9..6793aca36 100644
--- a/src/Enchantments.h
+++ b/src/Enchantments.h
@@ -85,7 +85,7 @@ public:
void AddFromString(const AString & a_StringSpec);
/** Get the count of enchantments */
- int Size(void);
+ size_t Size(void);
/** Serializes all the enchantments into a string */
AString ToString(void) const;