summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-01-27 05:04:18 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-01-27 05:04:18 +0100
commitf63b1b2e131948bed4b9e8ff3a9e4a7578a2be2e (patch)
tree3bcc799631951af38ae1560fc7447f15a3666dfe
parentAdded cItems to Lua API. (diff)
downloadcuberite-f63b1b2e131948bed4b9e8ff3a9e4a7578a2be2e.tar
cuberite-f63b1b2e131948bed4b9e8ff3a9e4a7578a2be2e.tar.gz
cuberite-f63b1b2e131948bed4b9e8ff3a9e4a7578a2be2e.tar.bz2
cuberite-f63b1b2e131948bed4b9e8ff3a9e4a7578a2be2e.tar.lz
cuberite-f63b1b2e131948bed4b9e8ff3a9e4a7578a2be2e.tar.xz
cuberite-f63b1b2e131948bed4b9e8ff3a9e4a7578a2be2e.tar.zst
cuberite-f63b1b2e131948bed4b9e8ff3a9e4a7578a2be2e.zip
-rw-r--r--source/Item.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/Item.h b/source/Item.h
index 8b78d4610..2fcef91cf 100644
--- a/source/Item.h
+++ b/source/Item.h
@@ -137,14 +137,14 @@ public:
void Clear (void) {clear(); }
int Size (void) {return size(); }
- void Add (ENUM_ITEM_ID a_ItemType, char a_ItemCount, short a_ItemHealth)
+ void Add (ENUM_ITEM_ID a_ItemType, char a_ItemCount, short a_ItemDamage)
{
- push_back(cItem(a_ItemType, a_ItemCount, a_ItemHealth));
+ push_back(cItem(a_ItemType, a_ItemCount, a_ItemDamage));
}
- void Set (int a_Idx, ENUM_ITEM_ID a_ItemType, char a_ItemCount, short a_ItemHealth)
+ void Set (int a_Idx, ENUM_ITEM_ID a_ItemType, char a_ItemCount, short a_ItemDamage)
{
- at(a_Idx) = cItem(a_ItemType, a_ItemCount, a_ItemHealth);
+ at(a_Idx) = cItem(a_ItemType, a_ItemCount, a_ItemDamage);
}
// tolua_end
} ; // tolua_export