Fix crash when drawing small scenery glass preview

This commit is contained in:
Gymnasiast committed 2021-12-04 11:55:34 +01:00
1 parent d2b8544654
commit a7f8a79313
1 file changed
+1 -1
+1 -1
View File
@@ -119,7 +119,7 @@ void SmallSceneryObject::DrawPreview(rct_drawpixelinfo* dpi, int32_t width, int3
if (_legacyType.HasFlag(SMALL_SCENERY_FLAG_HAS_GLASS))
{
imageId = ImageId(_legacyType.image + 4, EnumValue(GlassPaletteIds[COLOUR_BORDEAUX_RED])).WithBlended(true);
imageId = ImageId(_legacyType.image + 4).WithTransparancy(COLOUR_BORDEAUX_RED);
gfx_draw_sprite(dpi, imageId, screenCoords);
}