1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-06 04:17:58 +00:00

fixed some crashes on out_of_bounds

This commit is contained in:
Zeno Rogue
2023-04-27 22:48:36 +02:00
parent 557166c561
commit f9b0dcf8a0
2 changed files with 2 additions and 0 deletions

View File

@@ -278,6 +278,7 @@ void virtualRebase_cell(cell*& base, T& at, const U& check) {
while(true) {
cell *newbase = NULL;
forCellIdCM(c2, i, base) {
if(c2 == &out_of_bounds) continue;
transmatrix V2 = currentmap->iadj(base, i);
T cand_at = V2 * at;
horo_distance newz(check(cand_at));