From 79a9243acf0142042f909d5fc6a0a14cd1588a43 Mon Sep 17 00:00:00 2001 From: andy5995 Date: Thu, 6 Sep 2018 22:58:06 -0500 Subject: [PATCH] menu_state_custom_game.h:init 'index' Fixes ? https://scan4.coverity.com/reports.htm#v10064/p15637/g10064g/fileInstanceId=50222844&defectInstanceId=9301921&mergedDefectId=317047&eventId=9301921-3 --- source/glest_game/menu/menu_state_custom_game.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/glest_game/menu/menu_state_custom_game.h b/source/glest_game/menu/menu_state_custom_game.h index f6aef3352..6e0ae96df 100644 --- a/source/glest_game/menu/menu_state_custom_game.h +++ b/source/glest_game/menu/menu_state_custom_game.h @@ -60,7 +60,7 @@ namespace Glest { class GraphicListBoxFactions : public GraphicListBox { private: MenuStateCustomGame * menu; - int index; + int index = 0; public: GraphicListBoxFactions(const std::string &containerName = "", const std::string &objName = ""); void addInformation(MenuStateCustomGame* m, int i);