1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-02-05 17:30:16 +00:00

fixed crashes caused by missing rev_dir

This commit is contained in:
Zeno Rogue
2020-12-25 06:07:30 +01:00
parent f2e9b371ff
commit e13172f9ab
4 changed files with 9 additions and 6 deletions

View File

@@ -2872,7 +2872,7 @@ EX namespace sword {
cell *c2 = mi.t;
if(!mi.proper()) return d;
int s1 = mi.d;
int s2 = mi.rev_dir();
int s2 = mi.rev_dir_force();
neighborId(c2, c1);
if(s1 < 0 || s2 < 0) return d;
if(SWORDDIM == 2) {