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

Fix a compiler error from g++-4.6 -std=c++0x.

reg3.cpp:1129:47: error: expected primary-expression before ‘{’ token

This doesn't completely fix the build break on gcc46.
It's probably time to retire that build from TravisCI.
This commit is contained in:
Arthur O'Dwyer 2020-02-14 13:12:04 -05:00
parent ed15d381aa
commit a07e1d0809

View File

@ -1126,7 +1126,7 @@ EX namespace reg3 {
vector<int> possible;
int pfv = parent->fieldval;
if(geometry == gSpace535) pfv = 0;
for(auto s: nonlooping_earlier_states[{pfv, id}]) possible.push_back(s.second);
for(auto s: nonlooping_earlier_states[address{pfv, id}]) possible.push_back(s.second);
id1 = hrand_elt(possible, 0);
res->fiftyval = id1;
find_emeraldval(res, parent, d);