fix maps stay destroyed after switch
This commit is contained in:
		
							parent
							
								
									2d17ff0de3
								
							
						
					
					
						commit
						3e6d9c0c77
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -77,7 +77,7 @@ internal sealed class MapService | ||||||
|     { |     { | ||||||
|         if (!_maps.TryGetValue(name, out var mapData)) |         if (!_maps.TryGetValue(name, out var mapData)) | ||||||
|             return false; |             return false; | ||||||
|         Current = new Map(name, mapData); |         Current = new Map(name, (bool[,]) mapData.Clone()); | ||||||
|         return true; |         return true; | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Vinzenz Schroeter
						Vinzenz Schroeter