Skip to content

Commit

Permalink
Break infinite chain in render code (#3234)
Browse files Browse the repository at this point in the history
  • Loading branch information
PieterVdc authored May 10, 2024
1 parent ed4730e commit ee9f5fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/engine_render.c
Original file line number Diff line number Diff line change
Expand Up @@ -8960,6 +8960,8 @@ static void do_map_who(short tnglist_idx)
if (k > THINGS_COUNT)
{
ERRORLOG("Infinite loop detected when sweeping things list");
struct Map* mapblk = get_map_block_at(thing->mappos.x.stl.num, thing->mappos.y.stl.num);
break_mapwho_infinite_chain(mapblk);
break;
}
}
Expand Down

0 comments on commit ee9f5fd

Please sign in to comment.