1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

EPathfindingLayer: fix obvious layer over-allocation in CPathsInfo

This commit is contained in:
ArseniyShestakov 2015-11-19 04:01:56 +03:00
parent adeefe903a
commit d19cb5ce89

View File

@ -750,7 +750,7 @@ class DLL_LINKAGE EPathfindingLayer
public:
enum EEPathfindingLayer : ui8
{
WRONG = 0, AUTO = 1, LAND = 2, SAIL = 3, WATER, AIR, NUM_LAYERS
LAND = 0, SAIL = 1, WATER, AIR, NUM_LAYERS, WRONG, AUTO
};
EPathfindingLayer(EEPathfindingLayer _num = WRONG) : num(_num)