From fa4ba9c01aadd6cc217c5e9eef5d2f8332f84fed Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 18 Oct 2013 16:25:45 +0300 Subject: add missing initialisation in map. --- src/map.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/map.cpp b/src/map.cpp index 6e01e9c15..652f1c041 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -621,7 +621,7 @@ void Map::drawAmbientLayers(Graphics *const graphics, const LayerType type, } // find out which layer list to draw - AmbientLayerVector *layers; + AmbientLayerVector *layers = nullptr; switch (type) { case FOREGROUND_LAYERS: -- cgit v1.2.3-70-g09d2