1
0
Fork 0

Hotfixed compilation problems.

This commit is contained in:
madmaxoft 2014-07-27 23:15:51 +02:00
parent 0814a977f8
commit fd4ee20b2a
2 changed files with 2 additions and 2 deletions

View File

@ -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 File

@ -46,7 +46,7 @@ public:
virtual short GetDurabilityLossByAction(eDurabilityLostAction a_Action) override
{
switch (a_Action)
switch ((int)a_Action)
{
case dlaAttackEntity: return 1;
case dlaBreakBlock: return 2;