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