1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

Silence a warning to fix the build break on clang++ -std=c++11 -Wall.

./rogueviz/rewriting.cpp:120:37: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
      ginf[gInfOrderMixed].distlimit = {1, 1};
                                        ^~~~
                                        {   }
This commit is contained in:
Arthur O'Dwyer 2020-02-14 13:14:48 -05:00
parent a07e1d0809
commit fe53cd09ad

View File

@ -117,7 +117,7 @@ void load_rules(vector<string> vs) {
stop_game();
set_geometry(gInfOrderMixed);
ginf[gInfOrderMixed].distlimit = {1, 1};
ginf[gInfOrderMixed].distlimit = {{1, 1}};
ginf[gInfOrderMixed].flags |= qEXPERIMENTAL;
start = "";
@ -189,4 +189,4 @@ auto hooks =
+ addHook(hooks_drawcell, 100, labeller);
}
}
}