update servicepoint to branch with better codegen

This commit is contained in:
Vinzenz Schroeter 2024-10-19 16:07:41 +02:00
parent 4fad4612b7
commit 416c8f2165
5 changed files with 24 additions and 10 deletions

View file

@ -42,7 +42,7 @@ internal sealed class MapService
if (!_mapPrototypes.TryGetValue(name, out var prototype))
return false; // name not found
pixelGrid = Bitmap.New(PixelsPerRow, PixelsPerColumn);
pixelGrid = new Bitmap(PixelsPerRow, PixelsPerColumn);
DrawMapStep.Draw(pixelGrid, prototype.CreateInstance());
_mapPreviews.TryAdd(name, pixelGrid); // another thread may have added the map already