Skip to content

Commit

Permalink
small potential fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Cammin committed Oct 9, 2023
1 parent 913a364 commit f1d9652
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Assets/LDtkUnity/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
- Updated samples to 1.4.1
- Updated docs to instruct that a texture should be RGBA32 compression
- Made the LDtkComponentLayer ordered before the LDtkIid component
- Fixed a possible exception during initialization of LDtkFields

### Breaking Changes
- Removed the "De-parent in Runtime" feature from the project importer
Expand Down
2 changes: 1 addition & 1 deletion Assets/LDtkUnity/Runtime/Fields/LDtkFields.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace LDtkUnity
public partial class LDtkFields : MonoBehaviour
{
internal const string PROPERTY_FIELDS = nameof(_fields);
[SerializeField] private LDtkField[] _fields;
[SerializeField] private LDtkField[] _fields = Array.Empty<LDtkField>();

private readonly Dictionary<string, int> _keys = new Dictionary<string, int>();

Expand Down

0 comments on commit f1d9652

Please sign in to comment.