Permalink
Browse files
Hotfixed compilation problems.
- Loading branch information...
Showing
with
2 additions
and
2 deletions.
-
+1
−1
src/Items/ItemHandler.cpp
-
+1
−1
src/Items/ItemSword.h
|
|
@@ -366,7 +366,7 @@ void cItemHandler::OnFoodEaten(cWorld * a_World, cPlayer * a_Player, cItem * a_I |
|
|
|
|
|
short cItemHandler::GetDurabilityLossByAction(eDurabilityLostAction a_Action)
|
|
|
{
|
|
|
switch (a_Action)
|
|
|
switch ((int)a_Action)
|
|
|
{
|
|
|
case dlaAttackEntity: return 2;
|
|
|
case dlaBreakBlock: return 1;
|
|
|
|
|
|
@@ -46,7 +46,7 @@ class cItemSwordHandler : |
|
|
|
|
|
virtual short GetDurabilityLossByAction(eDurabilityLostAction a_Action) override
|
|
|
{
|
|
|
switch (a_Action)
|
|
|
switch ((int)a_Action)
|
|
|
{
|
|
|
case dlaAttackEntity: return 1;
|
|
|
case dlaBreakBlock: return 2;
|
|
|
|
0 comments on commit
fd4ee20