This commit is contained in:
Charles Dang 2018-07-13 18:30:52 +11:00
parent 64067dde09
commit 8abb1965cb

View file

@ -1250,7 +1250,7 @@ REGISTER_MOD_PARSER(RIGHT, )
// Add a background color.
REGISTER_MOD_PARSER(BG, args)
{
std::array<int, 4> c { 0, 0, 0, SDL_ALPHA_OPAQUE };
std::array<int, 4> c {{ 0, 0, 0, SDL_ALPHA_OPAQUE }};
std::vector<std::string> factors = utils::split(args, ',');
// Doesn't use color_t::from_rgba_string since there maybe fewer than 4 arguments