From d19cb5ce895071da856c7b408c5f8d0d8b5a08b1 Mon Sep 17 00:00:00 2001 From: ArseniyShestakov Date: Thu, 19 Nov 2015 04:01:56 +0300 Subject: [PATCH] EPathfindingLayer: fix obvious layer over-allocation in CPathsInfo --- lib/GameConstants.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/GameConstants.h b/lib/GameConstants.h index d2cd05280..3607ae5bf 100644 --- a/lib/GameConstants.h +++ b/lib/GameConstants.h @@ -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)