From 319257b0c8094acf16645701fb9a8158f5d91b40 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 25 Jun 2024 21:47:12 +0100 Subject: Un-const to allow move, no nvro here --- assetFactory/texturePacker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'assetFactory/texturePacker.cpp') diff --git a/assetFactory/texturePacker.cpp b/assetFactory/texturePacker.cpp index 0d0fdb6..64b2131 100644 --- a/assetFactory/texturePacker.cpp +++ b/assetFactory/texturePacker.cpp @@ -53,7 +53,7 @@ TexturePacker::pack(Size size) const } } else { - const auto x = pack({size.x * 2, size.y}), y = pack({size.x, size.y * 2}); + auto x = pack({size.x * 2, size.y}), y = pack({size.x, size.y * 2}); if (!x.first.empty() && (y.first.empty() || area(x.second) < area(y.second))) { return x; } -- cgit v1.2.3