Skip to content

Commit 1a6d5dc

Browse files
authored
Sprite - fix SecondarySpriteTexture - read_aligned_string instead of read_string_to_null
1 parent 7f4f29a commit 1a6d5dc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎UnityPy/classes/Sprite.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@ def save(self, writer: EndianBinaryWriter = None):
106106
class SecondarySpriteTexture:
107107
def __init__(self, reader):
108108
self.texture = PPtr(reader) # Texture2D
109-
self.name = reader.read_string_to_null()
109+
self.name = reader.read_aligned_string()
110110

111111
def save(self, writer):
112112
self.texture.save(writer)
113-
writer.write_string_to_null(self.name)
113+
writer.write_aligned_string(self.name)
114114

115115

116116
class SpriteSettings:

0 commit comments

Comments
 (0)