1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 01:20:37 +00:00

added const

This commit is contained in:
Zeno Rogue 2018-07-18 00:49:13 +02:00
parent c52f8e94d2
commit 76d0538b3c

View File

@ -157,7 +157,7 @@ bool step(int delta) {
case 2: {
sort(cells.begin(), cells.end(), [] (cellinfo &s1, cellinfo &s2) { return hdist0(s1.p) < hdist0(s2.p); });
sort(cells.begin(), cells.end(), [] (const cellinfo &s1, const cellinfo &s2) { return hdist0(s1.p) < hdist0(s2.p); });
make_cells_of_heptagon();
edgelens.clear();