Permalink
Browse files

Hotfixed compilation problems.

  • Loading branch information...
madmaxoft committed Jul 27, 2014
1 parent 0814a97 commit fd4ee20b2a927649b4671be95dccc8644c96e5ab
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/Items/ItemHandler.cpp
  2. +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;
View
@@ -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

Please sign in to comment.