From ff7d230596bb3cc96805aae5ef41aad8f0b07392 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 11 Mar 2025 10:53:24 +0100 Subject: [PATCH] rogueviz::seuphorica:: fixed a possible crash with portals --- rogueviz/seuphorica.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rogueviz/seuphorica.cpp b/rogueviz/seuphorica.cpp index c62267ae..55620692 100644 --- a/rogueviz/seuphorica.cpp +++ b/rogueviz/seuphorica.cpp @@ -227,8 +227,8 @@ void thru_portal(coord& x, vect2& v) { } } auto x1 = portals.at(x); - v.spin -= tile_orientation[x].spin; - v.spin += tile_orientation[x1].spin; + v -= tile_orientation[x].spin; + v += tile_orientation[x1].spin; v.at = x1; x = x1; }