From 07125b4872cbeedf7c851c011b4c95ce73757cfa Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Fri, 14 Jun 2019 12:38:44 +0200 Subject: [PATCH] Add braces to fix build warning --- src/character.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/character.cpp b/src/character.cpp index 6f16de2eec5e3..cdb55cfc43171 100644 --- a/src/character.cpp +++ b/src/character.cpp @@ -3331,7 +3331,7 @@ int Character::height() const int height = init_height; int height_pos = 15; - const static std::array v = { 290, 240, 190, 140, 90 }; + const static std::array v = {{ 290, 240, 190, 140, 90 }}; for( const int up_bound : v ) { if( up_bound >= init_height && up_bound - init_height < 40 ) { height_pos = up_bound - init_height;