1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-28 11:00:34 +00:00

movei(nullptr_t) not compiling on OSX Clang

This commit is contained in:
Zeno Rogue 2023-10-28 09:49:58 +02:00
parent 4e134c56b6
commit 8e55cc9ebd

View File

@ -492,7 +492,6 @@ struct movei {
}
movei(cell *_s, cell *_t, int _d) : s(_s), t(_t), d(_d) {}
movei(cellwalker cw) : s(cw.at), t(cw.cpeek()), d(cw.spin) {}
movei(nullptr_t) : s(nullptr), t(nullptr), d(NOMOVEI) {}
movei rev() const { return movei(t, s, rev_dir_or(d)); }
int dir_or(int x) const { return proper() ? d : x; }
int rev_dir_or(int x) const { return proper() ? s->c.spin(d) : x; }