mirror of
https://github.com/vcmi/vcmi.git
synced 2025-12-01 23:12:49 +02:00
use toEnum instead of getNum for switch'es
This commit is contained in:
@@ -505,7 +505,7 @@ void CPathfinderHelper::updateTurnInfo(const int Turn)
|
||||
|
||||
bool CPathfinderHelper::isLayerAvailable(const EPathfindingLayer & layer) const
|
||||
{
|
||||
switch(layer.getNum())
|
||||
switch(layer.toEnum())
|
||||
{
|
||||
case EPathfindingLayer::AIR:
|
||||
if(!options.useFlying)
|
||||
|
||||
Reference in New Issue
Block a user