1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-17 22:25:12 +00:00

rogueviz:: nilrider:: fixed one more possible crash

This commit is contained in:
Zeno Rogue
2025-09-07 13:33:29 +02:00
parent b46c1c5ced
commit 0bf46acbf2

View File

@@ -234,7 +234,7 @@ void run() {
emptyscreen();
clearMessages();
dialog::init();
if(view_replay && !paused) {
if(view_replay && !paused && !isize(curlev->history)) {
int ttick = gmod(ticks - simulation_start_tick, isize(curlev->history));
curlev->current = curlev->history[ttick];
curlev->current.centerview(curlev);