Skip to content

Commit cbb782d

Browse files
committed
Fix issue with tileset texture being invalid
1 parent 8ed34c2 commit cbb782d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Enlivengine/Graphics/Tileset.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class TilesetLoader
4949

5050
static ResourceLoader<Tileset> FromCode(TexturePtr texture, const Vector2u& tileSize, const Vector2u& gridSize, U32 spacing = 0, U32 margin = 0)
5151
{
52-
return ResourceLoader<Tileset>([&](Tileset& r)
52+
return ResourceLoader<Tileset>([=](Tileset& r)
5353
{
5454
r.SetTexture(texture);
5555
r.SetTileSize(tileSize);

0 commit comments

Comments
 (0)