mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-11-04 07:43:02 +00:00 
			
		
		
		
	savemem:: fixed a crash caoused by not erasing adj_memo
This commit is contained in:
		@@ -3506,6 +3506,7 @@ auto ccm = addHook(hooks_clearmemory, 0, [] () {
 | 
			
		||||
    }) +
 | 
			
		||||
  addHook(hooks_removecells, 0, [] () {
 | 
			
		||||
    for(cell *c: removed_cells) clearing::score.erase(c);
 | 
			
		||||
    for(auto& am: adj_memo) for(cell *c: removed_cells) am.erase(c);
 | 
			
		||||
    eliminate_if(heat::offscreen_heat, is_cell_removed);
 | 
			
		||||
    eliminate_if(heat::offscreen_fire, is_cell_removed);
 | 
			
		||||
    eliminate_if(princess::infos, [] (princess::info*& i) { 
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user