From b124ae5336261e6df5abf87f2d677980d25047b6 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 7 Dec 2025 23:07:39 +0100 Subject: [PATCH] fixed a bug with room FOV map saving/loading --- rogueviz/ru/save.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rogueviz/ru/save.cpp b/rogueviz/ru/save.cpp index 72f405b6..cf97a135 100644 --- a/rogueviz/ru/save.cpp +++ b/rogueviz/ru/save.cpp @@ -101,7 +101,7 @@ void reset_all() { for(auto& e: r.entities) { e->on_reset_all(); e->hs(resetter); } for(int y=0; yfov[y][x] = code[pos++] == '1'; + if(code.size() == room_y * room_x) + for(int y=0; yfov[y][x] = code[pos++] == '1'; } catch(hr_name_error& e) { println(hlog, "warning: could not find room: ", param);