mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-30 21:42:59 +00:00 
			
		
		
		
	brownian:: correct memory clearing
This commit is contained in:
		| @@ -176,6 +176,12 @@ namespace brownian { | ||||
|         colors[4]; | ||||
|      } | ||||
|    | ||||
|   int hrc = addHook(hooks_removecells, 0, [] () { | ||||
|     vector<cell*> to_remove; | ||||
|     for(auto p: futures) if(is_cell_removed(p.first)) to_remove.push_back(p.first); | ||||
|     for(auto r: to_remove) futures.erase(r); | ||||
|     }) + addHook(clearmemory, 0, [] () { futures.clear(); }); | ||||
|  | ||||
|   } | ||||
|  | ||||
| namespace westwall { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue