From 98c7db02741b84dc07af7ac73d7584b433cf63a4 Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Thu, 25 Mar 2021 18:57:00 +1000 Subject: [PATCH] Fix typo in TexAtlas.PackAtlas This has been here since it was added in a2ba761ae. I think it's never caused problems because the two lists are the same in all cases where the method's result is used (the single caller, ArtManager.Close, immediately checks the result of this method and throws if multiple atlases are used). --- src/BizHawk.Bizware.BizwareGL/TexAtlas.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BizHawk.Bizware.BizwareGL/TexAtlas.cs b/src/BizHawk.Bizware.BizwareGL/TexAtlas.cs index 59e2a0f084..55f53b2c10 100644 --- a/src/BizHawk.Bizware.BizwareGL/TexAtlas.cs +++ b/src/BizHawk.Bizware.BizwareGL/TexAtlas.cs @@ -135,7 +135,7 @@ namespace BizHawk.Bizware.BizwareGL var atlas = ret.Atlases[ret.Atlases.Count - 1]; atlas.Size.Width = tfpFinal.w; atlas.Size.Height = tfpFinal.h; - atlas.Items = new List(items); + atlas.Items = new List(currentItems); foreach (var item in currentItems) { object o = item.Item;