Use "default:" in switch.
This commit is contained in:
parent
c138d19c31
commit
09b63565bc
@ -73,11 +73,14 @@ bool cBeaconEntity::IsValidEffect(cEntityEffect::eType a_Effect, char a_BeaconLe
|
|||||||
case cEntityEffect::effSpeed: return (a_BeaconLevel >= 1);
|
case cEntityEffect::effSpeed: return (a_BeaconLevel >= 1);
|
||||||
case cEntityEffect::effHaste: return (a_BeaconLevel >= 1);
|
case cEntityEffect::effHaste: return (a_BeaconLevel >= 1);
|
||||||
case cEntityEffect::effNoEffect: return true;
|
case cEntityEffect::effNoEffect: return true;
|
||||||
}
|
|
||||||
|
|
||||||
|
default:
|
||||||
|
{
|
||||||
LOGD("%s: Invalid beacon effect: %d", __FUNCTION__, (int)a_Effect);
|
LOGD("%s: Invalid beacon effect: %d", __FUNCTION__, (int)a_Effect);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user